Skip to content

Instantly share code, notes, and snippets.

@flavorjones
Created January 31, 2025 19:18
Show Gist options
  • Save flavorjones/115317eb0b49810a4b4acd3c5435c52e to your computer and use it in GitHub Desktop.
Save flavorjones/115317eb0b49810a4b4acd3c5435c52e to your computer and use it in GitHub Desktop.
Using qemu and Docker for hardware emulation on Github Actions
jobs:
s390x: # run https://hub.docker.com/r/s390x/ubuntu under qemu
name: "s390x bigendian"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker run --rm -v $PWD:/work -w /work \
--platform linux/s390x s390x/ubuntu:oracular \
sh -c "
apt update &&
apt install -y build-essential ruby-dev ruby-bundler libyaml-dev pkg-config &&
bundle install &&
bundle exec rake compile test
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment