Skip to content

Commit aa548ae

Browse files
committed
Build pure WASI1 wasm binary in CI
1 parent a2df13b commit aa548ae

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/haskell-wasm.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ jobs:
141141
- name: Build all
142142
run: |
143143
wasm32-wasi-cabal build cardano-wasm --no-semaphore -j1 --ghc-options="-j1"
144+
wasm32-wasi-cabal build cardano-wasi --no-semaphore -j1 --ghc-options="-j1"
145+
cp $(env -u CABAL_CONFIG wasm32-wasi-cabal list-bin exe:cardano-wasi | tail -n1) cardano-wasm/cardano-wasi.wasm
144146
145147
- name: Prepare example
146148
run: |
@@ -227,6 +229,13 @@ jobs:
227229
path: cardano-wasm/lib-wrapper/*
228230
compression-level: 9
229231

232+
- name: Upload pure WASI wasm binary
233+
uses: actions/upload-artifact@v4
234+
with:
235+
name: cardano-wasi
236+
path: cardano-wasm/cardano-wasi.wasm
237+
compression-level: 9
238+
230239
- name: Upload built NPM package
231240
uses: actions/upload-artifact@v4
232241
with:

0 commit comments

Comments
 (0)