Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rust toolchain before building #781

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[target.wasm32-wasi]
[target.wasm32-wasip1]
runner = "wasmtime"
30 changes: 24 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust Toolchain
run: rustup default ${{ matrix.channel }}-${{ matrix.rust_target }}
run: rustup update ${{ matrix.channel }}-${{ matrix.rust_target }} && rustup default ${{ matrix.channel }}-${{ matrix.rust_target }}

- name: Install cargo-hack
run: cargo install cargo-hack
Expand All @@ -74,6 +74,9 @@ jobs:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust Toolchain
run: rustup update stable

- name: All features
run: cargo test --all-features

Expand All @@ -97,6 +100,9 @@ jobs:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust Toolchain
run: rustup update stable

- name: Examples
run: cargo test --manifest-path examples/Cargo.toml

Expand All @@ -112,6 +118,9 @@ jobs:
with:
node-version: '20'

- name: Install Rust Toolchain
run: rustup update stable

- name: Install
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

Expand All @@ -137,17 +146,20 @@ jobs:
- name: Add Wasmtime to path
run: echo "$HOME/.wasmtime/bin" >> $GITHUB_PATH

- name: Install wasm32-wasi target
run: rustup target add wasm32-wasi
- name: Install Rust Toolchain
run: rustup update nightly && rustup default nightly

- name: Install wasm32-wasip1 target
run: rustup target add wasm32-wasip1

- name: Default features
run: cargo test --target wasm32-wasi
run: cargo test --target wasm32-wasip1

- name: Version features
run: cargo test --target wasm32-wasi --features "$VERSION_FEATURES $DEP_FEATURES"
run: cargo test --target wasm32-wasip1 --features "$VERSION_FEATURES $DEP_FEATURES"

- name: Fast RNG
run: cargo test --target wasm32-wasi --features "v4 fast-rng"
run: cargo test --target wasm32-wasip1 --features "v4 fast-rng"

miri:
name: Tests / Miri
Expand All @@ -156,6 +168,9 @@ jobs:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust Toolchain
run: rustup update nightly

- name: Install Miri
run: |
rustup toolchain install nightly --component miri
Expand All @@ -174,6 +189,9 @@ jobs:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab

- name: Install Rust Toolchain
run: rustup update beta

- name: Install Clippy
run: |
rustup update beta
Expand Down
Loading