Skip to content

Commit aa6b0c5

Browse files
mattipmayeut
authored andcommitted
use qemu on github CI for ppc64le, s390x
1 parent 05549fb commit aa6b0c5

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/posix.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ jobs:
4646
- { os: ubuntu-24.04-arm, PLAT: aarch64, INTERFACE64: '0', MB_ML_VER: '_1_2', MB_ML_LIBC: musllinux}
4747
- { os: ubuntu-24.04-arm, PLAT: aarch64, INTERFACE64: '1', MB_ML_VER: '_1_2', MB_ML_LIBC: musllinux}
4848

49+
- { os: ubuntu-latest, PLAT: ppc64le, INTERFACE64: '0', MB_ML_VER: '2014', MB_ML_LIBC: manylinux}
50+
- { os: ubuntu-latest, PLAT: ppc64le, INTERFACE64: '1', MB_ML_VER: '2014', MB_ML_LIBC: manylinux}
51+
52+
- { os: ubuntu-latest, PLAT: s390x, INTERFACE64: '0', MB_ML_VER: '2014', MB_ML_LIBC: manylinux}
53+
- { os: ubuntu-latest, PLAT: s390x, INTERFACE64: '1', MB_ML_VER: '2014', MB_ML_LIBC: manylinux}
54+
4955
env:
5056
NIGHTLY: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
5157
MB_ML_LIBC: ${{ matrix.MB_ML_LIBC }}
@@ -71,6 +77,12 @@ jobs:
7177
with:
7278
xcode-version: '15.4'
7379

80+
- name: Set up QEMU
81+
if: runner.os == 'Linux' && runner.arch == 'X64'
82+
uses: docker/setup-qemu-action@v3
83+
with:
84+
platforms: all
85+
7486
- name: Print some Environment variable
7587
run: |
7688
echo "PLAT: ${PLAT}"

tools/build_steps.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,14 @@ function do_build_lib {
163163
export SDKROOT=${SDKROOT:-$(xcrun --show-sdk-path)}
164164
;;
165165
*-s390x)
166+
# The TargetList.txt has only ZARCH_GENERIC, Z13, Z14. Not worth
167+
# messing with dynamic lists and targets.
166168
local bitness=64
167169
;;
168170
*-ppc64le)
169171
local bitness=64
170172
local target="POWER8"
173+
local dynamic_list="POWER8 POWER10"
171174
;;
172175
Linux-loongarch64)
173176
local target="GENERIC"

0 commit comments

Comments
 (0)