From 8fb83ee79da288b153c0862011fb80d11c1ad3bd Mon Sep 17 00:00:00 2001 From: flowerinthenight Date: Wed, 11 Sep 2024 05:29:58 +0900 Subject: [PATCH] ci: add gh actions --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..3b35c96 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +name: main + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + test: + name: Build + if: "!contains(github.event.commits[0].message, 'ci skip')" + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{matrix.os}} + steps: + - uses: actions/checkout@v2 + - uses: goto-bus-stop/setup-zig@v2 + with: + version: 0.13.0 + - run: zig build test