Skip to content

Commit 747bd10

Browse files
authored
Merge pull request #28423 from charris/backport-28411
CI: use QEMU 9.2.2 for Linux Qemu tests
2 parents d556f2d + eb85757 commit 747bd10

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/linux_qemu.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
branches:
1515
- main
1616
- maintenance/**
17+
workflow_dispatch:
1718

1819
defaults:
1920
run:
@@ -28,8 +29,9 @@ permissions:
2829

2930
jobs:
3031
linux_qemu:
31-
# To enable this workflow on a fork, comment out:
32-
if: github.repository == 'numpy/numpy'
32+
# Only workflow_dispatch is enabled on forks.
33+
# To enable this job and subsequent jobs on a fork for other events, comment out:
34+
if: github.repository == 'numpy/numpy' || github.event_name == 'workflow_dispatch'
3335
runs-on: ubuntu-22.04
3436
continue-on-error: true
3537
strategy:
@@ -107,7 +109,8 @@ jobs:
107109

108110
- name: Initialize binfmt_misc for qemu-user-static
109111
run: |
110-
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
112+
# see https://hub.docker.com/r/tonistiigi/binfmt for available versions
113+
docker run --rm --privileged tonistiigi/binfmt:qemu-v9.2.2-52 --install all
111114
112115
- name: Install GCC cross-compilers
113116
run: |
@@ -176,4 +179,3 @@ jobs:
176179
cd /numpy && spin test -- -k \"${RUNTIME_TEST_FILTER}\"
177180
'"
178181
179-

0 commit comments

Comments
 (0)