Skip to content

Docs

Docs #17

Workflow file for this run

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