Skip to content

Commit

Permalink
ci: Use taiki-e/github-actions/install-rust action
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Sep 27, 2024
1 parent 6852d6b commit 86afb43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ jobs:
timeout-minutes: 60
steps:
- uses: taiki-e/checkout-action@v1
- name: Install Rust
run: rustup toolchain add "${{ matrix.rust }}" --no-self-update && rustup default "${{ matrix.rust }}"
- run: rustup toolchain add nightly --no-self-update
- uses: taiki-e/github-actions/install-rust@main
with:
toolchain: ${{ matrix.rust }}
- run: cargo test --workspace --all-features
- run: |
cargo install --path . --debug
Expand Down Expand Up @@ -99,8 +99,7 @@ jobs:
timeout-minutes: 60
steps:
- uses: taiki-e/checkout-action@v1
- name: Install Rust
run: rustup toolchain add nightly --no-self-update && rustup default nightly
- uses: taiki-e/github-actions/install-rust@nightly
- run: CARGO_HACK_TEST_TOOLCHAIN=${{ matrix.rust }} cargo test --workspace --all-features
# Remove stable toolchain to disable https://github.com/taiki-e/cargo-hack/pull/138's behavior.
- run: rustup toolchain remove stable
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ jobs:
contents: write
steps:
- uses: taiki-e/checkout-action@v1
- name: Install Rust
run: rustup update stable --no-self-update
- uses: taiki-e/github-actions/install-rust@stable
- uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}
Expand Down

0 comments on commit 86afb43

Please sign in to comment.