Skip to content

Commit

Permalink
Dump current QEMU version used by qemu-user-static
Browse files Browse the repository at this point in the history
  • Loading branch information
uraimo committed Feb 28, 2025
1 parent 1470574 commit c908d6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ jobs:
echo ::set-output name=host_env_distro::"$env_distro"
echo ::set-output name=host_shell_options::"$-"
# List all qemu packages, including qemu-user-static platforms
QEMULOCATION=$(dirname `which qemu-system-x86_64`) ; ls $QEMULOCATION/qemu-*
qemu-system-x86_64 -version
install: |
apt-get update -q -y
apt-get install -q -y git
Expand Down
7 changes: 4 additions & 3 deletions src/run-on-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ install_deps () {
# Install support for non-x86 emulation in Docker via QEMU.
# Platforms: linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x,
# linux/386, linux/arm/v7, linux/arm/v6
sudo apt-get update -q -y
sudo apt-get -qq install -y qemu qemu-user-static
sudo apt update -q -y
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes --credential yes
#Print current qemu version
docker run --rm --privileged --tty --entrypoint /usr/bin/qemu-arm-static multiarch/qemu-user-static:latest -version
}

build_container () {
Expand Down Expand Up @@ -137,7 +138,7 @@ run_container () {

# Installing deps produces a lot of log noise, so we do so quietly
quiet rm -f build-log.txt
quiet install_deps
install_deps

echo "::group::Build container"
build_container
Expand Down

0 comments on commit c908d6b

Please sign in to comment.