Skip to content

Commit 09d999f

Browse files
ci: enable Wasm builds
1 parent b4ac96c commit 09d999f

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/ci.yml

Lines changed: 15 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,13 @@ jobs:
5457
target: aarch64-macos-none
5558
- os: macos-13
5659
target: x86_64-macos-none
60+
exclude:
61+
# doesn't build
62+
- target: x86_64-windows-msvc
63+
wasm: "true"
64+
# no wasmtime archive
65+
- target: aarch64-windows-gnu
66+
wasm: "true"
5767
steps:
5868
- name: Checkout repository
5969
uses: actions/checkout@v5
@@ -66,4 +76,7 @@ jobs:
6676
if: matrix.target == 'x86_64-linux-musl'
6777
run: sudo apt-get update && sudo apt-get install -y musl
6878
- name: Run unit tests
69-
run: zig build test -Dtarget=${{matrix.target}} --verbose
79+
shell: sh
80+
run: zig build test $ZIG_FLAGS --verbose
81+
env:
82+
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)