-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Add toolchain/components inputs to setup-rust
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
name: Setup Rust | ||
description: Sets up Rust | ||
inputs: | ||
toolchain: | ||
description: The Rust toolchain to use | ||
required: false | ||
components: | ||
description: Comma-separated list of components to install | ||
required: false | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
components: clippy | ||
# Empty string means rust-toolchain if it exists, otherwise stable | ||
toolchain: ${{ inputs.toolchain }} | ||
components: ${{ inputs.components }} | ||
cache: true | ||
# Do not override the RUSTFLAGS by default and instead do that per job, | ||
# if needed. Setting RUSTFLAGS via env var, config, etc. is mutually | ||
# exclusive and often a source of bugs. | ||
# Empty string here means no override. | ||
rustflags: "" | ||
# By default, we do not override the toolchain from rust-toolchain. | ||
# The user needs to explicitly use `<cmd> +<toolchain>` for clarity. | ||
override: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters