Skip to content

Commit ec3cf02

Browse files
committed
Downgrade to qemu-8.2.1
Lima doesn't seem to work properly with the latest QEMU on GitHub runners. This commit will build qemu 8.2.1 from source, which will take 10min or so. It should be replaced by downloaded the bottle from ghcr.io. Signed-off-by: Jan Dubois <[email protected]>
1 parent b5b5600 commit ec3cf02

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ jobs:
370370

371371
upgrade:
372372
name: "Upgrade test"
373+
# The QEMU bottle URL needs to be updated when the runner is upgraded from Monterey
373374
runs-on: macos-12
374375
timeout-minutes: 120
375376
strategy:
@@ -387,7 +388,15 @@ jobs:
387388
with:
388389
template: https://raw.githubusercontent.com/lima-vm/lima/${{ matrix.oldver }}/examples/ubuntu-lts.yaml
389390
- name: Install test dependencies
390-
run: brew install qemu bash coreutils
391+
run: |
392+
brew install bash coreutils
393+
# QEMU 9.1.0 seems to break on GitHub runners, both on Monterey and Ventura
394+
# We revert back to 8.2.1, which seems to work fine
395+
# The SHA1 for the Monterey bottle comes from https://github.com/Homebrew/homebrew-core/blob/4c7ffca/Formula/q/qemu.rb
396+
brew uninstall --ignore-dependencies --force qemu
397+
curl -L -o qemu-8.2.1.monterey.bottle.tar.gz -H "Authorization: Bearer QQ==" \
398+
https://ghcr.io/v2/homebrew/core/qemu/blobs/sha256:41c77f6bac3e8c1664c665fbe2b19b19ee9da57f8e1ad6697348286710cc3575
399+
brew install --ignore-dependencies ./qemu-8.2.1.monterey.bottle.tar.gz
391400
- name: Test
392401
uses: nick-invision/retry@v3
393402
with:

0 commit comments

Comments
 (0)