Skip to content

Commit 6e453c2

Browse files
committed
WIP: Test Windows CI in a dev drive
1 parent d9c4b8d commit 6e453c2

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/ci.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
id: jobs
6161
job:
6262
name: ${{ matrix.name }}
63-
needs: [ calculate_matrix ]
63+
needs: [calculate_matrix]
6464
runs-on: "${{ matrix.os }}"
6565
defaults:
6666
run:
@@ -104,6 +104,16 @@ jobs:
104104
with:
105105
fetch-depth: 2
106106

107+
- if: contains(matrix.os, 'windows')
108+
uses: samypr100/setup-dev-drive@1d65529cfd809844a9e91e400a560294b6820a68
109+
with:
110+
# use as much space as is sensible, upper github limits are 14gb and 300gb
111+
drive-size: ${{ matrix.os == 'windows-2022' && '12gb' || '250gb' }}
112+
# pre-allocate the space to avoid out of disk errors and improve long-running performance
113+
drive-type: Fixed
114+
# mount the dev drive in the CWD
115+
mount-path: ${{ github.workspace }}
116+
107117
# Rust Log Analyzer can't currently detect the PR number of a GitHub
108118
# Actions build on its own, so a hint in the log message is needed to
109119
# point it in the right direction.
@@ -230,7 +240,7 @@ jobs:
230240
outcome:
231241
name: bors build finished
232242
runs-on: ubuntu-latest
233-
needs: [ calculate_matrix, job ]
243+
needs: [calculate_matrix, job]
234244
# !cancelled() executes the job regardless of whether the previous jobs passed or failed
235245
if: ${{ !cancelled() && contains(fromJSON('["auto", "try"]'), needs.calculate_matrix.outputs.run_type) }}
236246
steps:

0 commit comments

Comments
 (0)