diff --git a/action.yml b/action.yml index 18a2336..c63c8f0 100644 --- a/action.yml +++ b/action.yml @@ -68,6 +68,14 @@ 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' + shell: bash + - name: rustup toolchain install ${{steps.parse.outputs.toolchain}} 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 shell: bash