mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2025-09-21 23:41:57 +03:00
Merge 15ce61073f
into 6d653acede
This commit is contained in:
commit
e14dd1e531
2 changed files with 9 additions and 0 deletions
|
@ -53,6 +53,10 @@ All inputs are optional.
|
|||
<td><code>components</code></td>
|
||||
<td>Comma-separated string of additional components to install e.g. <code>clippy, rustfmt</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>set-default</code></td>
|
||||
<td>Whether to set the installed toolchain as the active default via <code>rustup default <toolchain></code>. Defaults to <code>true</code>. Set to <code>false</code> if you only plan to use the toolchain with explicit <code>+toolchain</code> overrides in your commands and don't want to change the runner's global default.</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
|
|
@ -18,6 +18,10 @@ inputs:
|
|||
components:
|
||||
description: Comma-separated list of components to be additionally installed
|
||||
required: false
|
||||
set-default:
|
||||
description: Whether to set the installed toolchain as the rustup default (rustup default <toolchain>)
|
||||
required: false
|
||||
default: 'true'
|
||||
|
||||
outputs:
|
||||
cachekey:
|
||||
|
@ -94,6 +98,7 @@ runs:
|
|||
shell: bash
|
||||
|
||||
- run: rustup default ${{steps.parse.outputs.toolchain}}
|
||||
if: ${{inputs['set-default'] == 'true'}}
|
||||
shell: bash
|
||||
continue-on-error: true # https://github.com/dtolnay/rust-toolchain/issues/127
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue