Use Ubuntu 22.04 for 24.04 ppc64le and s390x by radarhere · Pull Request #8713 · python-pillow/Pillow

The ppc64le and s390x jobs have started experiencing segfaults.

https://github.com/python-pillow/Pillow/actions/runs/12938692000/job/36093724713#step:6:235

powerpc64le-linux-gnu-gcc: internal compiler error: Segmentation fault signal terminated program cc1

https://github.com/python-pillow/Pillow/actions/runs/12938692000/job/36093724972#step:6:249

s390x-linux-gnu-gcc: internal compiler error: Segmentation fault signal terminated program collect2

The problem started occurring with version 20250120.5.0 of the runner image. I've found another user having segfaults recently who suggested switching back to Ubuntu 22.04, and changing the host does fix the problem. Perhaps this works as a temporary fix?

Edit: More specifically, I've found a report of a problem with ubuntu-latest and QEMU, although from a while ago.