Skip to content

Commit 835b9ac

Browse files
committed
Add QEMU on Windows to CI
For now it will use additional templates, because of incompatible mounts. Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
1 parent d851c78 commit 835b9ac

File tree

3 files changed

+651
-1
lines changed

3 files changed

+651
-1
lines changed

.github/workflows/test.yml

+31-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
run: sudo make uninstall
129129

130130
windows:
131-
name: "Windows tests"
131+
name: "Windows tests (WSL2)"
132132
runs-on: windows-2022-8-cores
133133
timeout-minutes: 30
134134
steps:
@@ -175,6 +175,36 @@ jobs:
175175
$env:_LIMA_WINDOWS_EXTRA_PATH = 'C:\Program Files\Git\usr\bin'
176176
bash.exe -c "./hack/test-templates.sh templates/experimental/wsl2.yaml"
177177
178+
windows-qemu:
179+
name: "Windows tests (QEMU)"
180+
runs-on: windows-2022-8-cores
181+
timeout-minutes: 30
182+
steps:
183+
- name: Set gitconfig
184+
run: |
185+
git config --global core.autocrlf false
186+
git config --global core.eol lf
187+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
188+
with:
189+
fetch-depth: 1
190+
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
191+
with:
192+
go-version: 1.24.x
193+
- name: Unit tests
194+
run: go test -v ./...
195+
- name: Make
196+
run: make
197+
- name: Integration tests (QEMU, Windows host)
198+
run: |
199+
$env:PATH = "$pwd\_output\bin;" + 'C:\msys64\usr\bin;' + 'C:\msys64\clang64\bin;' + $env:PATH
200+
pacman -Sy --noconfirm openbsd-netcat diffutils mingw-w64-clang-x86_64-qemu
201+
$env:MSYS2_ENV_CONV_EXCL = 'HOME_HOST;HOME_GUEST;_LIMA_WINDOWS_EXTRA_PATH'
202+
$env:HOME_HOST = $(cygpath.exe "$env:USERPROFILE")
203+
$env:HOME_GUEST = "$env:HOME_HOST"
204+
$env:LIMACTL_CREATE_ARGS = '--vm-type=qemu'
205+
$env:_LIMA_WINDOWS_EXTRA_PATH = 'C:\Program Files\Git\usr\bin'
206+
bash.exe -c "./hack/test-templates.sh templates/experimental/default-windows.yaml"
207+
178208
qemu:
179209
name: "Integration tests (QEMU, macOS host)"
180210
runs-on: macos-15-large # Intel

0 commit comments

Comments
 (0)