Skip to content

Commit f197218

Browse files
committed
also test on s390x via qemu
1 parent 358abb4 commit f197218

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
os: ubuntu-24.04-arm
3232
multiarch: armhf
3333
gcc_cross: arm-linux-gnueabihf
34+
- host_target: s390x-unknown-linux-gnu
35+
os: ubuntu-latest
36+
multiarch: s390x
37+
gcc_cross: s390x-linux-gnu
38+
qemu: true
3439
- host_target: aarch64-apple-darwin
3540
os: macos-latest
3641
- host_target: i686-pc-windows-msvc
@@ -40,11 +45,18 @@ jobs:
4045
HOST_TARGET: ${{ matrix.host_target }}
4146
steps:
4247
- uses: actions/checkout@v4
48+
- name: install qemu
49+
if: ${{ matrix.qemu }}
50+
run: sudo apt install qemu-user qemu-user-binfmt
4351
- name: install multiarch
4452
if: ${{ matrix.multiarch != '' }}
4553
run: |
54+
# s390x, ppc64el need Ubuntu Ports to be in the mirror list
55+
sudo bash -c "echo 'https://ports.ubuntu.com/ priority:4' >> /etc/apt/apt-mirrors.txt"
56+
# Add architecture
4657
sudo dpkg --add-architecture ${{ matrix.multiarch }}
4758
sudo apt update
59+
# Install needed packages
4860
sudo apt install $(echo "libatomic1: zlib1g-dev:" | sed 's/:/:${{ matrix.multiarch }}/g')
4961
- uses: ./.github/workflows/setup
5062
with:
@@ -61,7 +73,10 @@ jobs:
6173
TARGET_UPPERCASE=$(echo ${{ matrix.host_target }} | tr '[:lower:]-' '[:upper:]_')
6274
echo "CARGO_TARGET_${TARGET_UPPERCASE}_LINKER=${{ matrix.gcc_cross }}-gcc" | tee -a $GITHUB_ENV
6375
76+
# The main test job! We don't run this in qemu as that is quite slow,
77+
# so those targets only get the clippy check below.
6478
- name: Test Miri
79+
if: ${{ !matrix.qemu }}
6580
run: ./ci/ci.sh
6681

6782
# The `style` job only runs on Linux; this makes sure the host-specific

0 commit comments

Comments
 (0)