Skip to content

Commit 0d0cab3

Browse files
committed
.github/workflows/test.yml: Use QEMU 10.1.1 on macOS runner
QEMU 10.1.2 seems to break on GitHub runners Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
1 parent e21b634 commit 0d0cab3

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

.github/workflows/test.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,14 @@ jobs:
220220
timeout-minutes: 120
221221
steps:
222222
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
223+
- name: Fetch homebrew-core commit messages
224+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
225+
with:
226+
# needed by ./hack/brew-install-version.sh
227+
repository: homebrew/homebrew-core
228+
path: homebrew-core
229+
fetch-depth: 0
230+
filter: tree:0
223231
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
224232
with:
225233
go-version: 1.25.x
@@ -234,13 +242,21 @@ jobs:
234242
- name: Validate templates
235243
# Can't validate base templates in `_default` because they have no images
236244
run: find -L templates -name '*.yaml' ! -path '*/_default/*' | xargs limactl validate
245+
- name: Install test dependencies (QEMU 10.1.1)
246+
run: |
247+
brew install bash coreutils
248+
# QEMU 10.1.2 seems to break on GitHub runners
249+
# We revert back to 10.1.1, which seems to work fine
250+
git config --global user.name "GitHub Actions Bot"
251+
git config --global user.email "nobody@localhost"
252+
./hack/brew-install-version.sh qemu 10.1.1
237253
- name: Install test dependencies
238254
# QEMU: required by Lima itself
239255
# bash: required by test-templates.sh (OS version of bash is too old)
240256
# coreutils: required by test-templates.sh for the "timeout" command
241257
# w3m : required by test-templates.sh for port forwarding tests
242258
# socat: required by test-templates.sh for port forwarding tests
243-
run: brew install qemu bash coreutils w3m socat
259+
run: brew install bash coreutils w3m socat
244260
- name: "Adjust LIMACTL_CREATE_ARGS"
245261
run: echo "LIMACTL_CREATE_ARGS=${LIMACTL_CREATE_ARGS} --vm-type=qemu" >>$GITHUB_ENV
246262
- name: "Inject `no_timer_check` to kernel cmdline"
@@ -421,6 +437,14 @@ jobs:
421437
timeout-minutes: 120
422438
steps:
423439
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
440+
- name: Fetch homebrew-core commit messages
441+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
442+
with:
443+
# needed by ./hack/brew-install-version.sh
444+
repository: homebrew/homebrew-core
445+
path: homebrew-core
446+
fetch-depth: 0
447+
filter: tree:0
424448
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
425449
with:
426450
go-version: 1.25.x
@@ -437,8 +461,16 @@ jobs:
437461
uses: ./.github/actions/setup_cache_for_template
438462
with:
439463
template: templates/default.yaml
464+
- name: Install test dependencies (QEMU 10.1.1)
465+
run: |
466+
brew install bash coreutils
467+
# QEMU 10.1.2 seems to break on GitHub runners
468+
# We revert back to 10.1.1, which seems to work fine
469+
git config --global user.name "GitHub Actions Bot"
470+
git config --global user.email "nobody@localhost"
471+
./hack/brew-install-version.sh qemu 10.1.1
440472
- name: Install test dependencies
441-
run: brew install qemu bash coreutils w3m socat
473+
run: brew install bash coreutils w3m socat
442474
- name: Install socket_vmnet
443475
env:
444476
SOCKET_VMNET_VERSION: v1.2.0

0 commit comments

Comments
 (0)