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

Remplace actions-rs/toolchain by dtolnay/rust-toolchain #3282

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
27 changes: 11 additions & 16 deletions .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inputs:
required: true

components:
description: Extra component to install with rustup
description: Comma-separated string of additional components to install e.g. `clippy`, `rustfmt`
required: false
default: rustfmt, clippy

Expand All @@ -22,25 +22,17 @@ inputs:
default: cache

target:
description: Additional target to install (ex. `wasm32-unknown-unknown`)
description: Comma-separated string of additional targets to install e.g. `wasm32-unknown-unknown`
required: false

outputs:
cache-hit:
description: A boolean value to indicate an exact match was found for the key.
value: ${{ steps.cache-rust.outputs.cache-hit }}

rustc:
description: Rustc version
value: ${{ steps.rust-toolchain.outputs.rustc }}

cargo:
description: Cargo version
value: ${{ steps.rust-toolchain.outputs.cargo }}

rustup:
description: Rustup version
value: ${{ steps.rust-toolchain.outputs.rustup }}
cache-key:
description: Rust toolchain cache key.
value: ${{ steps.rust-toolchain.outputs.cachekey }}

runs:
using: composite
Expand All @@ -59,9 +51,12 @@ runs:

- name: Install rust toolchain
id: rust-toolchain
uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # pin v1.0.6
uses: dtolnay/rust-toolchain@2e4fc08e24c79a982d0b6f4638011718d61c0eee
with:
toolchain: ${{ inputs.version }}
components: ${{ inputs.components }}
target: ${{ inputs.target }}
override: true
targets: ${{ inputs.target }}

- name: Debug cache-key from toolchain install
run: echo ${{ steps.rust-toolchain.outputs.cachekey }}
shell: bash
1 change: 1 addition & 0 deletions newsfragments/3261.empty.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Superseded by #3281
Empty file added newsfragments/3281.empty.rst
Empty file.