summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2026-02-19 13:50:34 -0500
committerGitHub <noreply@github.com>2026-02-19 13:50:34 -0500
commitefa928b3d1c4acc1d3a4414877724992cfad4f0c (patch)
treecd203e6af033a3061e4eea326d0cde05e22f53fb
parent1fd2d6d88f5f78d879bf38bb3fba7fa2e749d3b0 (diff)
downloadcompiler-efa928b3d1c4acc1d3a4414877724992cfad4f0c.tar.gz
[repo]: setup CI (#10)
-rw-r--r--.github/workflows/ci.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..2477928
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+name: CI
+
+on:
+ push:
+ branches: [main, master]
+ pull_request:
+ branches: [main, master]
+
+jobs:
+ bazel:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Install Nix
+ uses: cachix/install-nix-action@v27
+ with:
+ extra_nix_config: experimental-features = nix-command flakes
+ - uses: cachix/cachix-action@v14
+ with:
+ name: mycache
+ authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
+ - name: Bazel Test
+ run: |
+ nix develop ./nix --command \
+ bazel test -c dbg //... \
+ --shell_executable=/bin/bash \
+ --test_output=errors