bazel.yml 618 B

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