-
-
Notifications
You must be signed in to change notification settings - Fork 14
68 lines (63 loc) · 1.92 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Continuous Integration
on:
pull_request:
branches: [ main ]
schedule:
# Every day at 11:09 UTC.
- cron: '9 11 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
XCODE_VERSION: 14.0.1
jobs:
tidy_and_test_matrix:
strategy:
fail-fast: false
matrix:
runner: [macos-12, ubuntu-22.04]
runs-on: ${{ matrix.runner }}
env:
# Linux runners need this.
CC: clang
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: maxim-lobanov/setup-xcode@v1
if: ${{ startsWith(matrix.runner, 'macos') }}
with:
xcode-version: ${{ env.XCODE_VERSION }}
- uses: ./.github/actions/configure_swift_for_linux
if: ${{ startsWith(matrix.runner, 'ubuntu') }}
- uses: cgrindel/gha_set_up_bazel@v1
with:
repo_name: rules_bazel_integration_test
- uses: ./.github/actions/tidy_and_test
integration_test_matrix:
strategy:
fail-fast: false
matrix:
runner: [macos-12, ubuntu-22.04]
runs-on: ${{ matrix.runner }}
env:
# Linux runners need this.
CC: clang
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: maxim-lobanov/setup-xcode@v1
if: ${{ startsWith(matrix.runner, 'macos') }}
with:
xcode-version: ${{ env.XCODE_VERSION }}
- uses: ./.github/actions/configure_swift_for_linux
if: ${{ startsWith(matrix.runner, 'ubuntu') }}
- uses: cgrindel/gha_set_up_bazel@v1
with:
repo_name: rules_bazel_integration_test
- uses: ./.github/actions/execute_integration_tests
all_ci_tests:
runs-on: ubuntu-22.04
needs: [tidy_and_test_matrix, integration_test_matrix]
if: ${{ always() }}
steps:
- uses: cgrindel/gha_join_jobs@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}