Skip to content

Commit

Permalink
use wasip1 target in gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bhelx committed Dec 4, 2024
1 parent 90e1e86 commit 8914d7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
profile: default
toolchain: stable
target: wasm32-wasi
target: wasm32-wasip1
default: true

- name: Setup Go
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
profile: default
toolchain: stable
target: wasm32-wasi
target: wasm32-wasip1
default: true

- name: Get wasm-opt
Expand All @@ -35,13 +35,13 @@ jobs:
run: make core

- name: Opt core
run: wasm-opt --enable-reference-types --enable-bulk-memory --strip -O3 target/wasm32-wasi/release/js_pdk_core.wasm -o target/wasm32-wasi/release/js_pdk_core.wasm
run: wasm-opt --enable-reference-types --enable-bulk-memory --strip -O3 target/wasm32-wasip1/release/js_pdk_core.wasm -o target/wasm32-wasip1/release/js_pdk_core.wasm

- name: Upload core binary to artifacts
uses: actions/upload-artifact@v4
with:
name: engine
path: target/wasm32-wasi/release/js_pdk_core.wasm
path: target/wasm32-wasip1/release/js_pdk_core.wasm

compile_cli:
name: Compile CLI
Expand Down

0 comments on commit 8914d7b

Please sign in to comment.