Docs #17
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: n-methods | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| bazel-build: | |
| runs-on: ubuntu-latest | |
| env: | |
| BAZEL_CXXOPTS: -std=c++23 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: bazel-contrib/setup-bazel@0.18.0 | |
| # Cache to speed up build time by using precompiled headers. | |
| - name: Mount bazel cache | |
| # Not needed for workflows. TODO: remove. | |
| uses: actions/cache@v4 | |
| with: | |
| path: "~/.cache/bazel" | |
| key: bazel | |
| - name: Build | |
| run: bazel build n-methods | |
| - name: Simple Test | |
| run: bazel test test-primes test-exponentiation test-modulo test-gcd test-sort | |
| - name: Google Test | |
| run: bazel test gtest |