update ci #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
zig-tests: | |
runs-on: ubuntu-latest | |
name: zig build test (multi version) | |
strategy: | |
matrix: | |
zig-version: [master, 0.13.0, 0.12.1, 0.11.0] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: mlugg/[email protected] | |
with: | |
version: ${{ matrix.zig-version }} | |
- run: | | |
echo "Testing with Zig version: ${{ matrix.zig-version }}" | |
zig version | |
zig build test --summary all | |
docusaurus-build: | |
runs-on: ubuntu-latest | |
name: docusaurus build | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/[email protected] | |
with: | |
node-version: "23" | |
- name: "npm install" | |
run: npm install | |
working-directory: website | |
- name: "npm run build" | |
run: npm run build | |
working-directory: website | |
- name: "Verify built site" | |
run: test website/build |