From e4be71a9fc1651cc97e2da4c910b2eb0302a8e41 Mon Sep 17 00:00:00 2001 From: Magnus Holm Date: Sat, 3 Aug 2024 10:00:47 +0200 Subject: [PATCH] Add GitHub Action --- .github/workflows/test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f0d1868 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: "Tests" + +on: + push: + schedule: + - cron: "0 3 * * 5" + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: mlugg/setup-zig@v1 + - name: Formatting + run: zig fmt --check src/*.zig + - name: Build executable + run: zig build + - name: Run small benchmark + run: ./zig-out/bin/spice-example -n 10000 --baseline -t 2