Skip to content

Commit

Permalink
ci: replace wasm32-wasi with wasm32-wasip1
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <[email protected]>
  • Loading branch information
apepkuss committed Jul 3, 2024
1 parent 239dfbe commit 84ad305
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,24 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
target: wasm32-wasi
target: wasm32-wasip1
components: rustfmt, clippy

- name: Install Rust-stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: wasm32-wasi
target: wasm32-wasip1

- name: Build rag-api-server
id: build_rag_api_server
run: |
cargo +nightly fmt --all -- --check
cargo +nightly clippy --target wasm32-wasi -- -D warnings
cargo build --target wasm32-wasi --release
cargo +nightly clippy --target wasm32-wasip1 -- -D warnings
cargo build --target wasm32-wasip1 --release
- name: Build rag-api-server-full
id: build_rag_api_server_full
run: |
cargo +nightly fmt --all -- --check
cargo +nightly clippy --target wasm32-wasi --features full -- -D warnings
cargo build --target wasm32-wasi --release --features full
cargo +nightly clippy --target wasm32-wasip1 --features full -- -D warnings
cargo build --target wasm32-wasip1 --release --features full
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ jobs:
id: rustup
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: wasm32-wasi
target: wasm32-wasip1

- name: Build rag-api-server
id: build_rag_api_server
run: |
cargo clean
cargo build --target wasm32-wasi --release
cp target/wasm32-wasi/release/rag-api-server.wasm rag-api-server.wasm
cargo build --target wasm32-wasip1 --release
cp target/wasm32-wasip1/release/rag-api-server.wasm rag-api-server.wasm
- name: Build rag-api-server-full
id: build_rag_api_server_full
run: |
cargo clean
cargo build --target wasm32-wasi --release --features full
cp target/wasm32-wasi/release/rag-api-server.wasm rag-api-server-full.wasm
cargo build --target wasm32-wasip1 --release --features full
cp target/wasm32-wasip1/release/rag-api-server.wasm rag-api-server-full.wasm
- name: Calculate checksum
id: checksum
Expand Down

0 comments on commit 84ad305

Please sign in to comment.