Skip to content

Commit

Permalink
Combine CARGO_HOME choice into a single step
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 1, 2024
1 parent b004a9e commit e4e1c59
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,7 @@ runs:
if: runner.os != 'Windows'
shell: bash
- run: echo CARGO_HOME=${CARGO_HOME:-$HOME/.cargo} >> $GITHUB_ENV
if: runner.os != 'Windows'
shell: bash

- run: echo CARGO_HOME=${CARGO_HOME:-$USERPROFILE/.cargo} >> $GITHUB_ENV
if: runner.os == 'Windows'
- run: echo CARGO_HOME=${CARGO_HOME:-${{runner.os == 'Windows' && '$USERPROFILE' || '$HOME'}}/.cargo} >> $GITHUB_ENV
shell: bash

- name: rustup toolchain install ${{steps.parse.outputs.toolchain}}
Expand Down

0 comments on commit e4e1c59

Please sign in to comment.