Skip to content

Commit 64f996f

Browse files
committed
ci: wasm32-wasi -> wasm32-wasip1
1 parent 87dadce commit 64f996f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/cloudcompiler.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ jobs:
2424
with:
2525
toolchain: ${{ env.MSRV }}
2626
target: ${{ matrix.target }}
27-
- name: Install wasm32-wasi target
27+
- name: Install wasm32-wasip1 target
2828
shell: bash
2929
run: |
30-
rustup target add wasm32-wasi
30+
rustup target add wasm32-wasip1
3131
- name: Setup Wasmer
3232
uses: wasmerio/setup-wasmer@v1
3333
- name: Build cloudcompiler.wasm
3434
shell: bash
3535
run: |
3636
make build-wasmer-wasm &&
37-
mkdir target/wasm32-wasi/release/cloudcompiler
38-
cp target/wasm32-wasi/release/wasmer-compiler.wasm target/wasm32-wasi/release/cloudcompiler/cloudcompiler.wasm &&
39-
cat << EOF > target/wasm32-wasi/release/cloudcompiler/wasmer.toml
37+
mkdir target/wasm32-wasip1/release/cloudcompiler
38+
cp target/wasm32-wasip1/release/wasmer-compiler.wasm target/wasm32-wasip1/release/cloudcompiler/cloudcompiler.wasm &&
39+
cat << EOF > target/wasm32-wasip1/release/cloudcompiler/wasmer.toml
4040
[package]
4141
name = "${{ secrets.WAPM_DEV_USERNAME }}/cloudcompiler"
4242
version = "0.1.0"
@@ -61,18 +61,18 @@ jobs:
6161
echo $(git tag | tail -n1) > ./version.txt
6262
v=$(git describe --tags --abbrev=0) && \
6363
echo "version = ${v}" &&
64-
sed -i "s/version = \".*\"/version = \"${v}\"/g" target/wasm32-wasi/release/cloudcompiler/wasmer.toml \
64+
sed -i "s/version = \".*\"/version = \"${v}\"/g" target/wasm32-wasip1/release/cloudcompiler/wasmer.toml \
6565
- name: Build cloudcompiler.wasm
6666
shell: bash
6767
run: |
6868
git tag &&
69-
cat target/wasm32-wasi/release/cloudcompiler/wasmer.toml &&
69+
cat target/wasm32-wasip1/release/cloudcompiler/wasmer.toml &&
7070
echo "ls" &&
71-
ls target/wasm32-wasi/release/cloudcompiler
71+
ls target/wasm32-wasip1/release/cloudcompiler
7272
- name: Publish to WAPM
7373
uses: wasmerio/wapm-publish@v1
7474
with:
7575
registry: https://registry.wapm.dev
76-
directory: target/wasm32-wasi/release/cloudcompiler
76+
directory: target/wasm32-wasip1/release/cloudcompiler
7777
username: ${{ secrets.WAPM_DEV_USERNAME }}
7878
password: ${{ secrets.WAPM_DEV_PASSWORD }}

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
uses: dtolnay/rust-toolchain@stable
132132
with:
133133
toolchain: nightly
134-
targets: "wasm32-wasi"
134+
targets: "wasm32-wasip1"
135135
- name: Install wasm-pack
136136
run: |
137137
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
@@ -207,8 +207,8 @@ jobs:
207207
runs-on: ubuntu-22.04
208208
steps:
209209
- uses: actions/checkout@v3
210-
- name: rustup target add wasm32-wasi
211-
run: rustup target add wasm32-wasi
210+
- name: rustup target add wasm32-wasip1
211+
run: rustup target add wasm32-wasip1
212212
- name: make build-wasmer-wasm
213213
run: make build-wasmer-wasm
214214

0 commit comments

Comments
 (0)