mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2025-06-07 11:16:37 +00:00
feat: allow disabling the rustup default
functionality
This commit is contained in:
parent
56f84321db
commit
87ac5504bc
1 changed files with 5 additions and 0 deletions
|
@ -18,6 +18,10 @@ inputs:
|
|||
components:
|
||||
description: Comma-separated list of components to be additionally installed
|
||||
required: false
|
||||
make-default:
|
||||
description: Make the installed toolchain the default -- must be 'true' or 'false'
|
||||
required: false
|
||||
default: 'true'
|
||||
|
||||
outputs:
|
||||
cachekey:
|
||||
|
@ -81,6 +85,7 @@ runs:
|
|||
|
||||
- run: rustup default ${{steps.parse.outputs.toolchain}}
|
||||
shell: bash
|
||||
if: inputs.make-default == 'true'
|
||||
continue-on-error: true # https://github.com/dtolnay/rust-toolchain/issues/127
|
||||
|
||||
- id: rustc-version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue