Created
January 31, 2025 19:18
-
-
Save flavorjones/115317eb0b49810a4b4acd3c5435c52e to your computer and use it in GitHub Desktop.
Using qemu and Docker for hardware emulation on Github Actions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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