• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: bazel
2
3on:
4  push: {}
5  pull_request: {}
6
7jobs:
8  job:
9    name: bazel.${{ matrix.os }}
10    runs-on: ${{ matrix.os }}
11    strategy:
12      fail-fast: false
13      matrix:
14        os: [ubuntu-latest, macos-latest, windows-2022]
15
16    steps:
17    - uses: actions/checkout@v3
18
19    - name: mount bazel cache
20      uses: actions/cache@v3
21      env:
22        cache-name: bazel-cache
23      with:
24        path: "~/.cache/bazel"
25        key: ${{ env.cache-name }}-${{ matrix.os }}-${{ github.ref }}
26        restore-keys: |
27          ${{ env.cache-name }}-${{ matrix.os }}-main
28
29    - name: build
30      run: |
31        bazel build //:benchmark //:benchmark_main //test/...
32
33    - name: test
34      run: |
35        bazel test --test_output=all //test/...
36