diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/main.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6232e50 --- /dev/null +++ b/.github/workflows/main.yml | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | name: CI | ||
| 2 | |||
| 3 | on: | ||
| 4 | push: | ||
| 5 | paths: | ||
| 6 | - '**.zig' | ||
| 7 | pull_request: | ||
| 8 | paths: | ||
| 9 | - '**.zig' | ||
| 10 | workflow_dispatch: | ||
| 11 | |||
| 12 | jobs: | ||
| 13 | build: | ||
| 14 | strategy: | ||
| 15 | matrix: | ||
| 16 | os: [ubuntu-latest, macos-latest, windows-latest] | ||
| 17 | runs-on: ${{ matrix.os }} | ||
| 18 | steps: | ||
| 19 | - uses: actions/checkout@v2 | ||
| 20 | with: | ||
| 21 | submodules: true | ||
| 22 | - uses: goto-bus-stop/setup-zig@v1 | ||
| 23 | with: | ||
| 24 | version: master | ||
| 25 | |||
| 26 | - name: Build | ||
| 27 | run: zig build | ||
| 28 | |||
| 29 | - name: Run Tests | ||
| 30 | run: zig build test | ||