Continuous Integration #1688
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 16.1.0 | |
jobs: | |
tidy_and_test_matrix: | |
strategy: | |
fail-fast: false | |
matrix: | |
runner: [macos-15, ubuntu-22.04] | |
runs-on: ${{ matrix.runner }} | |
env: | |
# Linux runners need this. | |
CC: clang | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 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 | |
# Disable local disk and repository caches related to file permission | |
# error in 7.0.0rc2. | |
# https://github.com/bazelbuild/bazel/issues/19908 | |
bazel_repo_cache_dir: "" | |
bazel_disk_cache_dir: "" | |
- uses: ./.github/actions/tidy_and_test | |
integration_test_matrix: | |
strategy: | |
fail-fast: false | |
matrix: | |
runner: [macos-15, ubuntu-22.04] | |
runs-on: ${{ matrix.runner }} | |
env: | |
# Linux runners need this. | |
CC: clang | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 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 | |
# Disable local disk and repository caches related to file permission | |
# error in 7.0.0rc2. | |
# https://github.com/bazelbuild/bazel/issues/19908 | |
bazel_repo_cache_dir: "" | |
bazel_disk_cache_dir: "" | |
- uses: ./.github/actions/execute_integration_tests | |
all_ci_tests: | |
runs-on: ubuntu-24.04 | |
needs: [tidy_and_test_matrix, integration_test_matrix] | |
if: ${{ always() }} | |
steps: | |
- uses: cgrindel/gha_join_jobs@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |