Skip to content

Commit eb51e70

Browse files
authored
Use hyperv for windows builds (#295)
Signed-off-by: Kozlowski, Marek <[email protected]>
1 parent 6c4f53f commit eb51e70

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build-multi.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ jobs:
202202
${{ runner.os == 'Windows' && ' \
203203
--memory 16G ' || ' '
204204
}}\
205+
${{ runner.os == 'Windows' && ' \
206+
--isolation=hyperv ' || ' '
207+
}}\
205208
${{ matrix.os.vmaj != '' && format(' \
206209
--build-arg VMAJ={0} \
207210
--build-arg VMIN={1} ', matrix.os.vmaj, matrix.os.vmin) || ' '
@@ -215,6 +218,9 @@ jobs:
215218
docker run \
216219
--rm \
217220
--interactive \
221+
${{ runner.os == 'Windows' && ' \
222+
--isolation=hyperv ' || ' '
223+
}}\
218224
-v '${{ github.workspace }}':${MOUNT_TARGET} \
219225
-w ${MOUNT_TARGET}/level-zero/build \
220226
-e CCACHE_BASEDIR=${MOUNT_TARGET} \
@@ -243,6 +249,9 @@ jobs:
243249
docker run \
244250
--rm \
245251
--interactive \
252+
${{ runner.os == 'Windows' && ' \
253+
--isolation=hyperv ' || ' '
254+
}}\
246255
-v '${{ github.workspace }}':${MOUNT_TARGET} \
247256
-w ${MOUNT_TARGET}/build \
248257
-e CCACHE_BASEDIR=${MOUNT_TARGET} \

0 commit comments

Comments
 (0)