2023-04-12 11:04:18 -04:00
|
|
|
name: CI
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
2023-04-26 04:55:36 -04:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
timeout-minutes: 30
|
2023-04-12 11:04:18 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
compat:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
zig: [ 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.10.0 ]
|
|
|
|
steps:
|
2023-04-25 09:13:38 -04:00
|
|
|
- uses: actions/checkout@v3
|
2023-04-12 11:04:18 -04:00
|
|
|
|
|
|
|
- name: Setup Zig
|
|
|
|
uses: goto-bus-stop/setup-zig@v2
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.zig }}
|
|
|
|
|
|
|
|
- name: Check compatibility with old Zig compilers
|
|
|
|
run: ci/compat.sh
|
2023-04-25 09:25:07 -04:00
|
|
|
test:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
2023-04-26 05:05:21 -04:00
|
|
|
- uses: actions/checkout@v2
|
2023-04-25 09:25:07 -04:00
|
|
|
|
|
|
|
- name: Setup Zig
|
|
|
|
uses: goto-bus-stop/setup-zig@v2
|
|
|
|
with:
|
|
|
|
version: master
|
|
|
|
|
|
|
|
- name: Unit Test
|
|
|
|
run: zig build test
|