From 8b84506b77b2e458ff7e34f7d9e6dcb5df56b7dc Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Mon, 30 Sep 2024 10:45:12 +0200 Subject: [PATCH] ci(test): enforce QEMU 9.0.2 Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/actions/macos-setup-qemu/action.yml | 17 +++++++++++++++++ .github/workflows/test.yml | 4 ++++ 2 files changed, 21 insertions(+) create mode 100644 .github/actions/macos-setup-qemu/action.yml diff --git a/.github/actions/macos-setup-qemu/action.yml b/.github/actions/macos-setup-qemu/action.yml new file mode 100644 index 0000000..4a6798d --- /dev/null +++ b/.github/actions/macos-setup-qemu/action.yml @@ -0,0 +1,17 @@ +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 + continue-on-error: true + shell: bash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4ca0a51..c2ca682 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -119,6 +119,10 @@ jobs: run: | corepack enable yarn --version + - + name: Set up QEMU + if: startsWith(matrix.os, 'macos') + uses: ./.github/actions/macos-setup-qemu - name: Setup Node uses: actions/setup-node@v4