Skip to content

Commit 4f3622d

Browse files
committed
ci: rust has to use wasm32-wasip1 instead of wasm32-wasi
Signed-off-by: hydai <z54981220@gmail.com>
1 parent bc5a061 commit 4f3622d

File tree

8 files changed

+71
-71
lines changed

8 files changed

+71
-71
lines changed

‎.github/workflows/build_openvino_mobilenet.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: dtolnay/rust-toolchain@stable
4040
with:
4141
toolchain: ${{ matrix.rust }}
42-
target: wasm32-wasi
42+
target: wasm32-wasip1
4343

4444
- name: Install dependencies
4545
run: |
@@ -63,15 +63,15 @@ jobs:
6363
run: |
6464
bash download_mobilenet.sh
6565
cd rust
66-
cargo build --target wasm32-wasi --release
66+
cargo build --target wasm32-wasip1 --release
6767
cd ..
68-
wasmedge --dir .:. ./rust/target/wasm32-wasi/release/wasmedge-wasinn-example-mobilenet.wasm mobilenet.xml mobilenet.bin tensor-1x224x224x3-f32.bgr
68+
wasmedge --dir .:. ./rust/target/wasm32-wasip1/release/wasmedge-wasinn-example-mobilenet.wasm mobilenet.xml mobilenet.bin tensor-1x224x224x3-f32.bgr
6969
7070
- name: Build and run openvino-mobilenet-image
7171
working-directory: openvino-mobilenet-image
7272
run: |
7373
bash download_mobilenet.sh
7474
cd rust
75-
cargo build --target wasm32-wasi --release
75+
cargo build --target wasm32-wasip1 --release
7676
cd ..
77-
wasmedge --dir .:. ./rust/target/wasm32-wasi/release/wasmedge-wasinn-example-mobilenet-image.wasm mobilenet.xml mobilenet.bin input.jpg
77+
wasmedge --dir .:. ./rust/target/wasm32-wasip1/release/wasmedge-wasinn-example-mobilenet-image.wasm mobilenet.xml mobilenet.bin input.jpg

‎.github/workflows/build_openvino_road_seg_adas.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: dtolnay/rust-toolchain@stable
3838
with:
3939
toolchain: ${{ matrix.rust }}
40-
target: wasm32-wasi
40+
target: wasm32-wasip1
4141

4242
- name: Install dependencies
4343
run: |
@@ -60,7 +60,7 @@ jobs:
6060
working-directory: openvino-road-segmentation-adas
6161
run: |
6262
cd openvino-road-seg-adas
63-
cargo build --target=wasm32-wasi --release
64-
cp target/wasm32-wasi/release/openvino-road-seg-adas.wasm ..
63+
cargo build --target=wasm32-wasip1 --release
64+
cp target/wasm32-wasip1/release/openvino-road-seg-adas.wasm ..
6565
cd ..
6666
wasmedge --dir .:. openvino-road-seg-adas.wasm ./model/road-segmentation-adas-0001.xml ./model/road-segmentation-adas-0001.bin ./image/empty_road_mapillary.jpg

‎.github/workflows/build_pytorch_yolo.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: dtolnay/rust-toolchain@stable
3838
with:
3939
toolchain: ${{ matrix.rust }}
40-
target: wasm32-wasi
40+
target: wasm32-wasip1
4141

4242
- name: Install LibTorch
4343
working-directory: scripts
@@ -57,7 +57,7 @@ jobs:
5757
run: |
5858
cd pytorch-yolo-image
5959
cd rust
60-
cargo build --target=wasm32-wasi --release
61-
cp target/wasm32-wasi/release/wasmedge-wasinn-example-yolo-image.wasm ..
60+
cargo build --target=wasm32-wasip1 --release
61+
cp target/wasm32-wasip1/release/wasmedge-wasinn-example-yolo-image.wasm ..
6262
cd ..
6363
wasmedge --dir .:. wasmedge-wasinn-example-yolo-image.wasm ./yolov8n.torchscript ./input.jpg

‎.github/workflows/chatTTS.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
2424
- name: Install Rust target for wasm
2525
run: |
26-
rustup target add wasm32-wasi
26+
rustup target add wasm32-wasip1
2727
2828
- name: Checkout WasmEdge
2929
uses: actions/checkout@v4
@@ -42,11 +42,11 @@ jobs:
4242
path: WasmEdge-WASINN-examples
4343

4444
- name: Build wasm
45-
run: cargo build --target wasm32-wasi --release
45+
run: cargo build --target wasm32-wasip1 --release
4646
working-directory: WasmEdge-WASINN-examples/wasmedge-chatTTS
4747

4848
- name: Execute
49-
run: WASMEDGE_PLUGIN_PATH=WasmEdge/build/plugins/wasi_nn WasmEdge/build/tools/wasmedge/wasmedge --dir .:. WasmEdge-WASINN-examples/wasmedge-chatTTS/target/wasm32-wasi/release/wasmedge-chattts.wasm
49+
run: WASMEDGE_PLUGIN_PATH=WasmEdge/build/plugins/wasi_nn WasmEdge/build/tools/wasmedge/wasmedge --dir .:. WasmEdge-WASINN-examples/wasmedge-chatTTS/target/wasm32-wasip1/release/wasmedge-chattts.wasm
5050

5151
- name: Verify output
5252
run: test "$(file --brief output1.wav)" == 'RIFF (little-endian) data, WAVE audio, mono 24000 Hz'

‎.github/workflows/llama.yml‎

Lines changed: 47 additions & 47 deletions
Large diffs are not rendered by default.

‎.github/workflows/piper.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ jobs:
3838
working-directory: WasmEdge
3939

4040
- name: Install Rust target for wasm
41-
run: rustup target add wasm32-wasi
41+
run: rustup target add wasm32-wasip1
4242

4343
- name: Checkout WasmEdge-WASINN-examples
4444
uses: actions/checkout@v4
4545
with:
4646
path: WasmEdge-WASINN-examples
4747

4848
- name: Build wasm
49-
run: cargo build --target wasm32-wasi --release
49+
run: cargo build --target wasm32-wasip1 --release
5050
working-directory: WasmEdge-WASINN-examples/wasmedge-piper
5151

5252
- name: Download model
@@ -62,7 +62,7 @@ jobs:
6262
rm piper_linux_x86_64.tar.gz
6363
6464
- name: Execute
65-
run: WASMEDGE_PLUGIN_PATH=WasmEdge/build/plugins/wasi_nn WasmEdge/build/tools/wasmedge/wasmedge --dir .:. WasmEdge-WASINN-examples/wasmedge-piper/target/wasm32-wasi/release/wasmedge-piper.wasm
65+
run: WASMEDGE_PLUGIN_PATH=WasmEdge/build/plugins/wasi_nn WasmEdge/build/tools/wasmedge/wasmedge --dir .:. WasmEdge-WASINN-examples/wasmedge-piper/target/wasm32-wasip1/release/wasmedge-piper.wasm
6666

6767
- name: Verify output
6868
run: test "$(file --brief welcome.wav)" == 'RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 22050 Hz'

‎.github/workflows/pytorch.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
3838
- name: Install Rust target for wasm
3939
run: |
40-
rustup target add wasm32-wasi
40+
rustup target add wasm32-wasip1
4141
4242
- name: Install WasmEdge + WASI-NN + PyTorch
4343
run: |
@@ -55,10 +55,10 @@ jobs:
5555
run: |
5656
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$(pwd)/libtorch/lib
5757
cd pytorch-mobilenet-image/rust
58-
cargo build --target wasm32-wasi --release
58+
cargo build --target wasm32-wasip1 --release
5959
cd ..
60-
wasmedge compile rust/target/wasm32-wasi/release/wasmedge-wasinn-example-mobilenet-image.wasm wasmedge-wasinn-example-mobilenet-image-aot.wasm
61-
wasmedge compile rust/target/wasm32-wasi/release/wasmedge-wasinn-example-mobilenet-image-named-model.wasm wasmedge-wasinn-example-mobilenet-image-named-model-aot.wasm
60+
wasmedge compile rust/target/wasm32-wasip1/release/wasmedge-wasinn-example-mobilenet-image.wasm wasmedge-wasinn-example-mobilenet-image-aot.wasm
61+
wasmedge compile rust/target/wasm32-wasip1/release/wasmedge-wasinn-example-mobilenet-image-named-model.wasm wasmedge-wasinn-example-mobilenet-image-named-model-aot.wasm
6262
echo "Run without named model"
6363
wasmedge --dir .:. wasmedge-wasinn-example-mobilenet-image-aot.wasm mobilenet.pt input.jpg
6464
echo "Run with named model"

‎.github/workflows/tflite.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
3838
- name: Install Rust target for wasm
3939
run: |
40-
rustup target add wasm32-wasi
40+
rustup target add wasm32-wasip1
4141
4242
- name: Install WasmEdge + WASI-NN + TFLite
4343
run: |
@@ -53,8 +53,8 @@ jobs:
5353
- name: Example
5454
run: |
5555
cd tflite-birds_v1-image/rust
56-
cargo build --target wasm32-wasi --release
56+
cargo build --target wasm32-wasip1 --release
5757
cd ..
58-
wasmedge compile rust/target/wasm32-wasi/release/wasmedge-wasinn-example-tflite-bird-image.wasm wasmedge-wasinn-example-tflite-bird-image.wasm
58+
wasmedge compile rust/target/wasm32-wasip1/release/wasmedge-wasinn-example-tflite-bird-image.wasm wasmedge-wasinn-example-tflite-bird-image.wasm
5959
wasmedge --dir .:. wasmedge-wasinn-example-tflite-bird-image.wasm lite-model_aiy_vision_classifier_birds_V1_3.tflite bird.jpg
6060

0 commit comments

Comments
 (0)