Skip to content

Commit 61016c7

Browse files
committed
fix(ci): configure Rustup home in runner setup
Signed-off-by: Piotr Mlocek <[email protected]>
1 parent 0b8b8d4 commit 61016c7

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎.github/workflows/windows-msvc.yml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ jobs:
5656
rust_target: aarch64-pc-windows-msvc
5757
runs-on: ${{ matrix.runner }}
5858
env:
59-
# rust-cache hashes every installed toolchain, including unused runner defaults.
60-
RUSTUP_HOME: ${{ runner.temp }}/openshell-rustup
6159
READ_ONLY_GITHUB_TOKEN: ${{ github.token }}
6260
SCCACHE_GHA_ENABLED: "true"
6361
SCCACHE_GHA_VERSION: windows-msvc-${{ matrix.arch }}
@@ -71,6 +69,9 @@ jobs:
7169
experimental: true
7270
- name: Configure GHA sccache backend
7371
uses: mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
72+
- name: Isolate Rust toolchains
73+
# rust-cache hashes every installed toolchain, including unused runner defaults.
74+
run: '"RUSTUP_HOME=$env:RUNNER_TEMP/openshell-rustup" >> $env:GITHUB_ENV'
7475
- uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 # stable
7576
with:
7677
toolchain: "1.95.0"
@@ -115,7 +116,6 @@ jobs:
115116
rust_target: aarch64-pc-windows-msvc
116117
runs-on: ${{ matrix.runner }}
117118
env:
118-
RUSTUP_HOME: ${{ runner.temp }}/openshell-rustup
119119
READ_ONLY_GITHUB_TOKEN: ${{ github.token }}
120120
SCCACHE_GHA_ENABLED: "true"
121121
SCCACHE_GHA_VERSION: windows-msvc-${{ matrix.arch }}
@@ -129,6 +129,8 @@ jobs:
129129
experimental: true
130130
- name: Configure GHA sccache backend
131131
uses: mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
132+
- name: Isolate Rust toolchains
133+
run: '"RUSTUP_HOME=$env:RUNNER_TEMP/openshell-rustup" >> $env:GITHUB_ENV'
132134
- uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 # stable
133135
with:
134136
toolchain: "1.95.0"
@@ -170,7 +172,6 @@ jobs:
170172
rust_target: aarch64-pc-windows-msvc
171173
runs-on: ${{ matrix.runner }}
172174
env:
173-
RUSTUP_HOME: ${{ runner.temp }}/openshell-rustup
174175
READ_ONLY_GITHUB_TOKEN: ${{ github.token }}
175176
SCCACHE_GHA_ENABLED: "true"
176177
SCCACHE_GHA_VERSION: windows-msvc-${{ matrix.arch }}
@@ -184,6 +185,8 @@ jobs:
184185
experimental: true
185186
- name: Configure GHA sccache backend
186187
uses: mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
188+
- name: Isolate Rust toolchains
189+
run: '"RUSTUP_HOME=$env:RUNNER_TEMP/openshell-rustup" >> $env:GITHUB_ENV'
187190
- uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 # stable
188191
with:
189192
toolchain: "1.95.0"

0 commit comments

Comments
 (0)