action-setup-zig/.github/workflows/ci.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

2019-10-05 04:54:14 -06:00
name: CI
2019-10-05 04:56:30 -06:00
on: push
2019-10-05 04:54:14 -06:00
jobs:
test:
name: Unit tests
2019-10-05 07:19:06 -06:00
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
2019-10-05 07:19:06 -06:00
2019-10-05 04:54:14 -06:00
smoke-test:
name: Build test
2019-10-05 04:58:19 -06:00
strategy:
fail-fast: false
2019-10-05 04:58:19 -06:00
matrix:
2019-10-05 05:01:01 -06:00
os: [ubuntu-latest, macos-latest, windows-latest]
zig-version: [0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0]
2022-11-07 05:42:28 -07:00
include:
- os: ubuntu-latest
zig-version: 0.5.0
2019-10-05 05:01:01 -06:00
runs-on: ${{matrix.os}}
2019-10-05 04:54:14 -06:00
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Zig
uses: goto-bus-stop/setup-zig@default
2019-10-05 04:57:26 -06:00
with:
version: ${{matrix.zig-version}}
- name: Run tests (zig up to v0.10.x)
if: ${{ !startsWith(matrix.zig-version, '0.11.') }}
run: zig build test
working-directory: test/v0.10
- name: Run tests (zig v0.11.x)
if: ${{ startsWith(matrix.zig-version, '0.11.') }}
run: zig build test
working-directory: test/v0.11