diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d213ab4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: + - master + +jobs: + build-linux: + name: Linux + runs-on: ubuntu-latest + steps: + - name: Install latest Zig + run: | + wget https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz + tar xf zig-linux-x86_64-0.13.0.tar.xz + echo "$GITHUB_WORKSPACE/zig-linux-x86_64-0.13.0" >> $GITHUB_PATH + + - name: Check Zig version + run: [ "$(zig version)" != "0.13.0" ] && exit 1 || exit 0 + + - name: Build & Test + run: zig build test