Skip to content

Commit 7bf2f5f

Browse files
committed
Release both QEMU arch builds in the same release
1 parent e1caeb6 commit 7bf2f5f

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

.github/workflows/qemu.yml

+25-12
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,13 @@ on:
66
required: false
77
type: string
88
default: '8.2.2'
9-
arch:
10-
required: false
11-
type: choice
12-
options:
13-
- 'x86_64'
14-
- 'aarch64'
15-
default: 'x86_64'
169

1710
jobs:
1811
build:
19-
permissions:
20-
contents: write
2112
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
arch: [aarch64, x86_64]
2216
steps:
2317

2418
- name: Install dependencies
@@ -40,12 +34,31 @@ jobs:
4034
- name: Build QEMU
4135
run: |
4236
cd qemu-${{ inputs.version }}
43-
./configure --static --target-list=${{ inputs.arch }}-softmmu
37+
# --disable-gio is required with --static
38+
./configure --static --disable-gio --target-list=${{ matrix.arch }}-softmmu
4439
make -j$(nproc)
4540
41+
- name: Upload QEMU binary
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: qemu-${{ matrix.arch }}
45+
path: qemu-${{ inputs.version }}/build/qemu-system-${{ matrix.arch }}
46+
47+
release:
48+
runs-on: ubuntu-latest
49+
needs: build
50+
permissions:
51+
contents: write
52+
steps:
53+
54+
- name: Download QEMU binaries
55+
uses: actions/download-artifact@v4
56+
4657
- name: Publish release
4758
uses: softprops/action-gh-release@v2
4859
with:
4960
prerelease: true
50-
tag_name: qemu-${{ inputs.arch }}-${{ inputs.version }}-${{ github.workflow_sha }}
51-
files: qemu-${{ inputs.version }}/build/qemu-system-${{ inputs.arch }}
61+
tag_name: qemu-${{ inputs.version }}-${{ github.workflow_sha }}
62+
files: |
63+
qemu-system-x86_64
64+
qemu-system-aarch64

0 commit comments

Comments
 (0)