From 822726bbfece171e5c21761e30f2a8e5fc05d32b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Arrufat?= Date: Sat, 13 Apr 2024 15:56:20 +0900 Subject: [PATCH] Add CI --- .github/workflows/ci.yml | 57 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 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..d0e6e9a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,57 @@ +name: CI - Zignal + +on: + push: + paths: + - ".github/workflows/ci.yml" + - "**.zig" + - "**.zon" + pull_request: + paths: + - ".github/workflows/ci.yml" + - "**.zig" + - "**.zon" + +jobs: + test: + strategy: + matrix: + include: + - zig-version: master + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Grab Zig + uses: goto-bus-stop/setup-zig@v2 + with: + version: ${{ matrix.zig-version }} + + - name: Native modules + run: | + make native + + - name: Linux modules + run: | + make linux + + - name: macOS modules + run: | + make macos + + - name: Windows modules + run: | + make windows + + - name: WebAssembly modules + run: | + make wasm + + - name: Tests master + run: | + make test