Skip to content

Commit

Permalink
ci(test): enforce QEMU 9.0.2
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Oct 4, 2024
1 parent 38d1dce commit a45a55d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/actions/macos-setup-qemu/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Setup QEMU on macOS'
description: 'Set up QEMU on macOS runners'

# FIXME: Remove this composite once QEMU issue is fixed on macOS runners
# https://github.com/docker/actions-toolkit/issues/455

runs:
using: composite
steps:
- run: |
set -ex
brew uninstall --ignore-dependencies qemu || true
brew autoremove || true
curl -o /tmp/qemu.rb https://raw.githubusercontent.com/Homebrew/homebrew-core/f1a9cf104a9a51779c7a532b658c490f69974839/Formula/q/qemu.rb
brew install /tmp/qemu.rb
shell: bash
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ jobs:
run: |
corepack enable
yarn --version
-
name: Set up QEMU
if: startsWith(matrix.os, 'macos')
continue-on-error: true
uses: ./.github/actions/macos-setup-qemu
-
name: Setup Node
uses: actions/setup-node@v4
Expand Down

0 comments on commit a45a55d

Please sign in to comment.