From 8c501020a052457fc97d0ed571155df4ec78518b Mon Sep 17 00:00:00 2001 From: Edward Palmer <93386624+EdwardPalmer99@users.noreply.github.com> Date: Sat, 21 Mar 2026 21:25:27 +0000 Subject: [PATCH] Add CI workflow for build and test Set up CI workflow for building and testing the project using Bazel. --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6bbc1e4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: Build & Test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: bazel-contrib/setup-bazel@0.14.0 + with: + # Avoid downloading Bazel every time. + bazelisk-cache: true + # Store build cache per workflow. + disk-cache: ${{ github.workflow }} + # Share repository cache between workflows. + repository-cache: true + - name: Build + run: bazel build //... --config=release + - name: Unit Tests + run: bazel test //... --config=release