From e080f0ccd1ab0e19a167595121629e7b7687e0b6 Mon Sep 17 00:00:00 2001 From: Rene Schallner <30892199+renerocksai@users.noreply.github.com> Date: Fri, 28 Apr 2023 21:02:54 +0200 Subject: [PATCH] Create main.yml for CI Intended to run nightly to check if we're still compatible with zig master --- .github/workflows/main.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..e4db9c8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,35 @@ +name: CI & nightly Zig check +on: + push: + branches: + - master + pull_request: + branches: + - master + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + +jobs: + ci: + strategy: + matrix: + # platform: [ubuntu-latest, windows-latest] + platform: [ubuntu-latest] + runs-on: ${{ matrix.platform }} + steps: + - uses: actions/checkout@v3 + #- name: Setup Linux dependencies + # if: runner.os == 'Linux' + # run: | + # sudo apt-get update + # sudo apt-get install libgtk-3-dev + - uses: goto-bus-stop/setup-zig@v2 + with: + version: master + - name: Check formatting + run: zig fmt --check . + - name: Build simple endpoint example + run: zig build endpoint + - name: Build tests + run: zig build test