1name: bazel 2 3on: 4 push: {} 5 pull_request: {} 6 7jobs: 8 build-and-test: 9 runs-on: ubuntu-latest 10 11 steps: 12 - uses: actions/checkout@v1 13 14 - name: mount bazel cache 15 uses: actions/cache@v2.0.0 16 env: 17 cache-name: bazel-cache 18 with: 19 path: "~/.cache/bazel" 20 key: ${{ env.cache-name }}-${{ runner.os }}-${{ github.ref }} 21 restore-keys: | 22 ${{ env.cache-name }}-${{ runner.os }}-main 23 24 - name: build 25 run: | 26 bazel build //:benchmark //:benchmark_main //test/... 27 28 - name: test 29 run: | 30 bazel test --test_output=all //test/... 31