Skip to content

Commit a8686ce

Browse files
committed
fix(ci): build all wasm
1 parent 1e65ae6 commit a8686ce

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ jobs:
3535
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-22/wasi-sdk_22.0_amd64.deb
3636
sudo dpkg -i wasi-sdk_22.0_amd64.deb
3737
- name: Build Extism
38+
env:
39+
WASI_SDK_PATH: /opt/wasi-sdk
3840
run: |
3941
cd perl-sdk
40-
/opt/wasi-sdk/bin/clang -o Extism/host.wasm host.c -mexec-model=reactor
42+
make wasm
4143
cd Extism
4244
perl Makefile.PL
4345
make manifest

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
.PHONY: all
2-
all: Extism Extism/host.wasm Extism/unreachable.wasm
2+
all: Extism wasm
3+
4+
.PHONY: wasm
5+
wasm: Extism/host.wasm Extism/unreachable.wasm
36

47
Extism/host.wasm: host.c
58
$(WASI_SDK_PATH)/bin/clang -o $@ $^ -mexec-model=reactor

0 commit comments

Comments
 (0)