Skip to content

Commit 7f86358

Browse files
ci: enable Wasm builds
1 parent 798df8b commit 7f86358

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ concurrency:
2424
jobs:
2525
test:
2626
runs-on: ${{matrix.os}}
27-
name: Test target ${{matrix.target}}
27+
name: Test target ${{matrix.target}} (enable-wasm=${{matrix.wasm}})
2828
strategy:
2929
fail-fast: false
3030
matrix:
@@ -37,6 +37,9 @@ jobs:
3737
- aarch64-windows-gnu
3838
- aarch64-macos-none
3939
- x86_64-macos-none
40+
wasm:
41+
- "true"
42+
- "false"
4043
include:
4144
- os: ubuntu-24.04
4245
target: x86_64-linux-gnu
@@ -54,6 +57,9 @@ jobs:
5457
target: aarch64-macos-none
5558
- os: macos-13
5659
target: x86_64-macos-none
60+
exclude:
61+
- target: aarch64-windows-gnu
62+
wasm: "true"
5763
steps:
5864
- name: Checkout repository
5965
uses: actions/checkout@v5
@@ -66,4 +72,7 @@ jobs:
6672
if: matrix.target == 'x86_64-linux-musl'
6773
run: sudo apt-get update && sudo apt-get install -y musl
6874
- name: Run unit tests
69-
run: zig build test -Dtarget=${{matrix.target}} --verbose
75+
shell: sh
76+
run: zig build test $ZIG_FLAGS --verbose
77+
env:
78+
ZIG_FLAGS: -Dtarget=${{matrix.target}} -Denable-wasm=${{matrix.wasm}}

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set up Zig
3131
uses: mlugg/setup-zig@v2
3232
- name: Generate documentation
33-
run: zig build docs --verbose
33+
run: zig build docs -Denable-wasm=true --verbose
3434
- name: Upload pages artifact
3535
uses: actions/upload-pages-artifact@v3
3636
with:

0 commit comments

Comments
 (0)