44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
permissions:
|
|
contents: read
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-latest
|
|
phase8_target: linux-x64
|
|
- os: macos-14
|
|
phase8_target: darwin-arm64
|
|
- os: windows-latest
|
|
phase8_target: windows
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
USE_BAZEL_VERSION: 9.0.0
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: bazel-contrib/setup-bazel@0.18.0
|
|
with:
|
|
bazelisk-cache: true
|
|
repository-cache: true
|
|
external-cache: true
|
|
disk-cache: ci-${{ matrix.phase8_target }}
|
|
cache-save: ${{ github.event_name != 'pull_request' }}
|
|
- name: Run tests (${{ matrix.phase8_target }})
|
|
shell: bash
|
|
run: |
|
|
echo "Phase 8 target: ${{ matrix.phase8_target }}"
|
|
targets="$(./tests/ci_test/phase8_ci_targets.sh "${{ matrix.phase8_target }}")"
|
|
bazel test --test_output=errors ${targets}
|