Skip to content

Commit

Permalink
Migrate from wasm32-wasi (no longer exists on nightly) to wasm32-wasip2
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtriplett committed Nov 9, 2024
1 parent 53529ac commit db5afc0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ jobs:
sparcv9-sun-solaris
aarch64-linux-android
aarch64-apple-ios
wasm32-wasi
- if: matrix.rust != '1.63'
run: rustup target add x86_64-unknown-fuchsia
run: >
rustup target add
wasm32-wasip2
x86_64-unknown-fuchsia
- if: matrix.rust == '1.63'
run: rustup target add x86_64-fuchsia

Expand All @@ -98,6 +100,8 @@ jobs:
- run: cargo check --workspace --release -vv --target=x86_64-apple-darwin --features=all-apis --all-targets
- run: cargo check --workspace --release -vv --target=x86_64-unknown-freebsd --features=all-apis --all-targets
- run: cargo check --workspace --release -vv --target=x86_64-unknown-netbsd --features=all-apis --all-targets
- if: matrix.rust != '1.63'
run: cargo check --workspace --release -vv --target=wasm32-wasip2 --features=all-apis
- if: matrix.rust != '1.63'
run: cargo check --workspace --release -vv --target=x86_64-unknown-fuchsia --features=all-apis --all-targets
- if: matrix.rust == '1.63'
Expand All @@ -121,7 +125,6 @@ jobs:
- run: cargo check --workspace --release -vv --target=sparcv9-sun-solaris --features=all-apis --all-targets
- run: cargo check --workspace --release -vv --target=aarch64-apple-ios --features=all-apis --all-targets
- run: cargo check --workspace --release -vv --target=aarch64-linux-android --features=all-apis --all-targets
- run: cargo check --workspace --release -vv --target=wasm32-wasi --features=all-apis

check_no_default_features:
name: Check --no-default-features
Expand Down Expand Up @@ -176,10 +179,10 @@ jobs:
- run: >
rustup target add
x86_64-unknown-redox
wasm32-wasi
wasm32-wasip2
thumbv7neon-unknown-linux-gnueabihf
- run: cargo check --workspace --release -vv --target=x86_64-unknown-redox --features=all-apis
- run: cargo check --workspace --release -vv --target=wasm32-wasi --features=all-apis
- run: cargo check --workspace --release -vv --target=wasm32-wasip2 --features=all-apis
- run: cargo check --workspace --release -vv --target=thumbv7neon-unknown-linux-gnueabihf --features=all-apis

check_tier3:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ jobs:
ref: rustix-0.35.6-beta.2
submodules: true

- run: rustup target add wasm32-wasi
- run: rustup target add wasm32-wasip2
- run: cd wasmtime && cargo update
- run: sed -i'.bak' 's/^version = "'`cd wasmtime && cargo tree --edges=normal |head -1 |sed 's/^[[:alnum:]_-]* v\([[:alnum:].-]*\) (.*/\1/'`'"$/version = '`grep -A1 '^name = "rustix"' wasmtime/Cargo.lock |grep ^version |sed 's/^[^"]*//'`'/' Cargo.toml
- run: cd wasmtime && echo '[patch.crates-io]' >> Cargo.toml
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ targets = [
"x86_64-unknown-redox",
"x86_64-unknown-haiku",
"wasm32-unknown-emscripten",
"wasm32-wasi",
"wasm32-wasip2",
]

[features]
Expand Down

0 comments on commit db5afc0

Please sign in to comment.