mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-11-22 00:39:31 +01:00
Combine CARGO_HOME choice into a single step
This commit is contained in:
parent
b004a9e513
commit
e4e1c59547
1 changed files with 1 additions and 6 deletions
|
@ -68,12 +68,7 @@ runs:
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- run: echo CARGO_HOME=${CARGO_HOME:-$HOME/.cargo} >> $GITHUB_ENV
|
- run: echo CARGO_HOME=${CARGO_HOME:-${{runner.os == 'Windows' && '$USERPROFILE' || '$HOME'}}/.cargo} >> $GITHUB_ENV
|
||||||
if: runner.os != 'Windows'
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- run: echo CARGO_HOME=${CARGO_HOME:-$USERPROFILE/.cargo} >> $GITHUB_ENV
|
|
||||||
if: runner.os == 'Windows'
|
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: rustup toolchain install ${{steps.parse.outputs.toolchain}}
|
- name: rustup toolchain install ${{steps.parse.outputs.toolchain}}
|
||||||
|
|
Loading…
Reference in a new issue