mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-02 14:59:53 +08:00
* Skip building webassets in CI Building webassets is not always needed and many of our CI build just builds them and ends up not using them after. This PR skips building the webassets for all pipelines where they are not needed. This should save us some time and $$. * Make some changes to trigger CI * Create the missing directory
75 lines
1.5 KiB
YAML
75 lines
1.5 KiB
YAML
name: OS Compatibility Test
|
|
run-name: OS Compatibility Test
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- 'web/**'
|
|
- 'rfd/**'
|
|
merge_group:
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- 'web/**'
|
|
- 'rfd/**'
|
|
|
|
jobs:
|
|
build:
|
|
name: OS Compatibility Build
|
|
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
|
|
runs-on: ubuntu-22.04-16core
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
container:
|
|
image: ghcr.io/gravitational/teleport-buildbox-centos7:teleport13
|
|
env:
|
|
GOCACHE: /tmp/gocache
|
|
WEBASSETS_SKIP_BUILD: 1
|
|
|
|
steps:
|
|
- name: Checkout Teleport
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Prepare workspace
|
|
uses: ./.github/actions/prepare-workspace
|
|
|
|
- name: Run make
|
|
run: |
|
|
make binaries
|
|
|
|
- name: Upload binaries
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: build
|
|
path: ${{ github.workspace }}/build/
|
|
|
|
test-compat:
|
|
needs: build
|
|
name: OS Compatibility Test
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Download binaries
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: build
|
|
path: ${{ github.workspace }}/build
|
|
|
|
- name: chmod +x
|
|
run: chmod +x ${GITHUB_WORKSPACE}/build/*
|
|
|
|
- name: Run compat matrix
|
|
timeout-minutes: 10
|
|
run: |
|
|
cd ${GITHUB_WORKSPACE} && ./build.assets/build-test-compat.sh
|