You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
742 B

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