Skip to content

Commit b004a9e

Browse files
authored
Merge pull request #108 from dariocurr/master
Add `CARGO_HOME` to `GITHUB_ENV`
2 parents bb45937 + 18c33af commit b004a9e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ runs:
6868
if: runner.os != 'Windows'
6969
shell: bash
7070
71+
- run: echo CARGO_HOME=${CARGO_HOME:-$HOME/.cargo} >> $GITHUB_ENV
72+
if: runner.os != 'Windows'
73+
shell: bash
74+
75+
- run: echo CARGO_HOME=${CARGO_HOME:-$USERPROFILE/.cargo} >> $GITHUB_ENV
76+
if: runner.os == 'Windows'
77+
shell: bash
78+
7179
- name: rustup toolchain install ${{steps.parse.outputs.toolchain}}
7280
run: rustup toolchain install ${{steps.parse.outputs.toolchain}}${{steps.flags.outputs.targets}}${{steps.flags.outputs.components}} --profile minimal${{steps.flags.outputs.downgrade}} --no-self-update
7381
shell: bash

0 commit comments

Comments
 (0)