From 590969c3b1557e5c814521c491751b3b802376f0 Mon Sep 17 00:00:00 2001 From: pwbh Date: Fri, 23 Aug 2024 09:44:37 +0300 Subject: [PATCH] Create small CI --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..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