Skip to content

Commit

Permalink
Merge pull request #781 from uuid-rs/ci/rust-versions
Browse files Browse the repository at this point in the history
Update rust toolchain before building
  • Loading branch information
KodrAus authored Jan 10, 2025
2 parents 5cbe0ce + 1ce698c commit 4cdc981
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
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

0 comments on commit 4cdc981

Please sign in to comment.