Skip to content

Commit

Permalink
fix(ci): build all wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
G4Vi committed Oct 10, 2024
1 parent 1e65ae6 commit a8686ce
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ jobs:
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-22/wasi-sdk_22.0_amd64.deb
sudo dpkg -i wasi-sdk_22.0_amd64.deb
- name: Build Extism
env:
WASI_SDK_PATH: /opt/wasi-sdk
run: |
cd perl-sdk
/opt/wasi-sdk/bin/clang -o Extism/host.wasm host.c -mexec-model=reactor
make wasm
cd Extism
perl Makefile.PL
make manifest
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.PHONY: all
all: Extism Extism/host.wasm Extism/unreachable.wasm
all: Extism wasm

.PHONY: wasm
wasm: Extism/host.wasm Extism/unreachable.wasm

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

0 comments on commit a8686ce

Please sign in to comment.