From bc90da461fbe8ab2d820058b15d4f279db405f3f Mon Sep 17 00:00:00 2001 From: mattip Date: Mon, 3 Nov 2025 12:47:50 +0200 Subject: [PATCH 1/2] use qemu on github CI for ppc64le, s390x --- .github/workflows/posix.yml | 12 ++++++++++++ tools/build_steps.sh | 3 +++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index 111508c..5974fe9 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -43,6 +43,12 @@ jobs: - { os: ubuntu-24.04-arm, PLAT: aarch64, INTERFACE64: '0', MB_ML_VER: '_1_2', MB_ML_LIBC: musllinux} - { os: ubuntu-24.04-arm, PLAT: aarch64, INTERFACE64: '1', MB_ML_VER: '_1_2', MB_ML_LIBC: musllinux} + - { os: ubuntu-latest, PLAT: ppc64le, INTERFACE64: '0', MB_ML_VER: '2014', MB_ML_LIBC: manylinux} + - { os: ubuntu-latest, PLAT: ppc64le, INTERFACE64: '1', MB_ML_VER: '2014', MB_ML_LIBC: manylinux} + + - { os: ubuntu-latest, PLAT: s390x, INTERFACE64: '0', MB_ML_VER: '2014', MB_ML_LIBC: manylinux} + - { os: ubuntu-latest, PLAT: s390x, INTERFACE64: '1', MB_ML_VER: '2014', MB_ML_LIBC: manylinux} + env: NIGHTLY: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} MB_ML_LIBC: ${{ matrix.MB_ML_LIBC }} @@ -68,6 +74,12 @@ jobs: with: xcode-version: '15.4' + - name: Set up QEMU + if: runner.os == 'Linux' && runner.arch == 'X64' + uses: docker/setup-qemu-action@v3 + with: + platforms: all + - name: Print some Environment variable run: | echo "PLAT: ${PLAT}" diff --git a/tools/build_steps.sh b/tools/build_steps.sh index 0d77b93..ee91642 100644 --- a/tools/build_steps.sh +++ b/tools/build_steps.sh @@ -181,11 +181,14 @@ EOF export DYLD_LIBRARY_PATH=/usr/local/lib:$DYLD_LIBRARY_PATH ;; *-s390x) + # The TargetList.txt has only ZARCH_GENERIC, Z13, Z14. Not worth + # messing with dynamic lists and targets. local bitness=64 ;; *-ppc64le) local bitness=64 local target="POWER8" + local dynamic_list="POWER8 POWER10" ;; Linux-loongarch64) local target="GENERIC" From 83ab73c9402ae28f64b05a78f5b8bd969cccf247 Mon Sep 17 00:00:00 2001 From: mattip Date: Mon, 3 Nov 2025 14:05:12 +0200 Subject: [PATCH 2/2] typo --- .github/workflows/posix.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index 5974fe9..6152eab 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -74,7 +74,7 @@ jobs: with: xcode-version: '15.4' - - name: Set up QEMU + - name: Set up QEMU if: runner.os == 'Linux' && runner.arch == 'X64' uses: docker/setup-qemu-action@v3 with: