Skip to content

Commit b9c6d93

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

File tree

1 file changed

+27
-13
lines changed

1 file changed

+27
-13
lines changed

.github/workflows/qemu.yml

+27-13
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,17 @@ 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
25-
run: sudo apt install -y libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build
19+
run: sudo apt install -y libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build libslirp-dev
2620

2721
- name: Cache QEMU source
2822
id: cache
@@ -40,12 +34,32 @@ jobs:
4034
- name: Build QEMU
4135
run: |
4236
cd qemu-${{ inputs.version }}
43-
./configure --static --target-list=${{ inputs.arch }}-softmmu
37+
./configure --enable-slirp --target-list=${{ matrix.arch }}-softmmu
4438
make -j$(nproc)
4539
40+
strip build/qemu-system-${{ matrix.arch }}
41+
42+
- name: Upload QEMU binary
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: qemu-${{ matrix.arch }}
46+
path: qemu-${{ inputs.version }}/build/qemu-system-${{ matrix.arch }}
47+
48+
release:
49+
runs-on: ubuntu-latest
50+
needs: build
51+
permissions:
52+
contents: write
53+
steps:
54+
55+
- name: Download QEMU binaries
56+
uses: actions/download-artifact@v4
57+
4658
- name: Publish release
4759
uses: softprops/action-gh-release@v2
4860
with:
4961
prerelease: true
50-
tag_name: qemu-${{ inputs.arch }}-${{ inputs.version }}-${{ github.workflow_sha }}
51-
files: qemu-${{ inputs.version }}/build/qemu-system-${{ inputs.arch }}
62+
tag_name: qemu-${{ inputs.version }}-${{ github.workflow_sha }}
63+
files: |
64+
qemu-x86_64/qemu-system-x86_64
65+
qemu-aarch64/qemu-system-aarch64

0 commit comments

Comments
 (0)