Skip to content

Commit 368436b

Browse files
Build qemu user binaries too (#9)
1 parent 181fc4f commit 368436b

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/scripts/configure.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,21 @@ MOSTLY_STATIC=false
88
SCALA_CLI=(.github/scripts/scala-cli)
99
BINARIES=()
1010

11+
TARGET_LIST="x86_64-softmmu,aarch64-softmmu"
12+
13+
if [ "$WINDOWS_CROSS" == "true" ]; then
14+
:
15+
elif [ "$(expr substr $(uname -s) 1 5 2>/dev/null)" == "Linux" ]; then
16+
TARGET_LIST="$TARGET_LIST,x86_64-linux-user,aarch64-linux-user"
17+
fi
18+
1119
SHARED_ARGS=(
1220
--enable-slirp
1321
--enable-tools
14-
--target-list=x86_64-softmmu,aarch64-softmmu
22+
--target-list="$TARGET_LIST"
1523
--disable-bsd-user
1624
--disable-zstd
1725
--disable-libusb
18-
--disable-bsd-user
1926
--disable-curl
2027
--disable-libssh
2128
--disable-png

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,12 @@ jobs:
174174
- run: tar -zxvf qemu-${{ matrix.OSSHORT }}.tar.gz
175175
- run: ldd usr/local/bin/qemu-system-aarch64
176176
- run: ldd usr/local/bin/qemu-system-x86_64
177+
- run: ldd usr/local/bin/qemu-aarch64
178+
- run: ldd usr/local/bin/qemu-x86_64
177179
- run: usr/local/bin/qemu-system-aarch64 --help
178180
- run: usr/local/bin/qemu-system-x86_64 --help
181+
- run: usr/local/bin/qemu-aarch64 --help
182+
- run: usr/local/bin/qemu-x86_64 --help
179183
- name: Release
180184
uses: softprops/action-gh-release@v2
181185
with:

0 commit comments

Comments
 (0)