Skip to content

Commit 222940d

Browse files
committed
Need to add the qemu user support.
1 parent 9d37bcb commit 222940d

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/armv7-musl-linux.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Install build tools
19-
run: sudo apt-get update && sudo apt-get install -y cmake make wget
19+
run: sudo apt-get update && sudo apt-get install -y cmake make wget qemu-user-static binfmt-support
2020
- name: Download and install musl-cross toolchain
2121
run: ./scripts/download-musl-cross.sh arm-unknown-linux-musleabihf
2222
- name: Configure and Build
@@ -27,6 +27,7 @@ jobs:
2727
-DCMAKE_C_FLAGS='-static' \
2828
-DCMAKE_SYSTEM_NAME=Linux \
2929
-DCMAKE_SYSTEM_PROCESSOR=arm \
30+
-DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/qemu-arm-static \
3031
..
3132
cmake --build .
3233
- name: Upload build artifacts

.github/workflows/ppc64le-musl-linux.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Install build tools
19-
run: sudo apt-get update && sudo apt-get install -y cmake make wget
19+
run: sudo apt-get update && sudo apt-get install -y cmake make wget qemu-user-static binfmt-support
2020
- name: Download and install musl-cross toolchain
2121
run: ./scripts/download-musl-cross.sh powerpc64le-unknown-linux-musl
2222
- name: Configure and Build
@@ -27,6 +27,7 @@ jobs:
2727
-DCMAKE_C_FLAGS='-static' \
2828
-DCMAKE_SYSTEM_NAME=Linux \
2929
-DCMAKE_SYSTEM_PROCESSOR=ppc64le \
30+
-DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/qemu-ppc64le-static \
3031
..
3132
cmake --build .
3233
- name: Upload build artifacts

.github/workflows/riscv64-musl-linux.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Install build tools
19-
run: sudo apt-get update && sudo apt-get install -y cmake make wget
19+
run: sudo apt-get update && sudo apt-get install -y cmake make wget qemu-user-static binfmt-support
2020
- name: Download and install musl-cross toolchain
2121
run: ./scripts/download-musl-cross.sh riscv64-unknown-linux-musl
2222
- name: Configure and Build
@@ -27,6 +27,7 @@ jobs:
2727
-DCMAKE_C_FLAGS='-static' \
2828
-DCMAKE_SYSTEM_NAME=Linux \
2929
-DCMAKE_SYSTEM_PROCESSOR=riscv64 \
30+
-DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/qemu-riscv64-static \
3031
..
3132
cmake --build .
3233
- name: Upload build artifacts

.github/workflows/s390x-musl-linux.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818
- name: Install build tools
19-
run: sudo apt-get update && sudo apt-get install -y cmake make wget
19+
run: sudo apt-get update && sudo apt-get install -y cmake make wget qemu-user-static binfmt-support
2020
- name: Download and install musl-cross toolchain
2121
run: ./scripts/download-musl-cross.sh s390x-ibm-linux-musl
2222
- name: Configure and Build
@@ -27,6 +27,7 @@ jobs:
2727
-DCMAKE_C_FLAGS='-static' \
2828
-DCMAKE_SYSTEM_NAME=Linux \
2929
-DCMAKE_SYSTEM_PROCESSOR=s390x \
30+
-DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/qemu-s390x-static \
3031
..
3132
cmake --build .
3233
- name: Upload build artifacts

0 commit comments

Comments
 (0)