Skip to content

Commit 802126c

Browse files
committed
Consistently use backslash directories on Windows
1 parent 636f3b2 commit 802126c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ runs:
6363

6464
- run: |
6565
: set $CARGO_HOME
66-
echo CARGO_HOME=${CARGO_HOME:-${{runner.os == 'Windows' && '$USERPROFILE' || '$HOME'}}/.cargo} >> $GITHUB_ENV
66+
echo CARGO_HOME=${CARGO_HOME:-'${{runner.os == 'Windows' && '$USERPROFILE\.cargo' || '$HOME/.cargo'}}'} >> $GITHUB_ENV
6767
shell: bash
6868
6969
- run: |
7070
: install rustup if needed
7171
if ! command -v rustup &>/dev/null; then
7272
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused --location --silent --show-error --fail https://sh.rustup.rs | sh -s -- --default-toolchain none -y
73-
echo "$CARGO_HOME/bin" >> $GITHUB_PATH
73+
echo '$CARGO_HOME/bin' >> $GITHUB_PATH
7474
fi
7575
if: runner.os != 'Windows'
7676
shell: bash
@@ -80,7 +80,7 @@ runs:
8080
if ! command -v rustup &>/dev/null; then
8181
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused --location --silent --show-error --fail https://static.rust-lang.org/rustup/dist/${{ runner.arch == 'ARM64' && 'aarch64' || 'x86_64' }}-pc-windows-msvc/rustup-init.exe --output '${{runner.temp}}\rustup-init.exe'
8282
'${{runner.temp}}\rustup-init.exe' --default-toolchain none --no-modify-path -y
83-
echo "$USERPROFILE/.cargo/bin" >> $GITHUB_PATH
83+
echo '$USERPROFILE\.cargo\bin' >> $GITHUB_PATH
8484
fi
8585
if: runner.os == 'Windows'
8686
shell: bash

0 commit comments

Comments
 (0)