Skip to content

Commit

Permalink
Update QEMU info CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
uraimo committed Feb 27, 2025
1 parent d78ce44 commit 00c9c74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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
9 changes: 5 additions & 4 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
docker run --rm --privileged --tty multiarch/qemu-user-static:latest ls /usr/bin/

}

build_container () {
Expand All @@ -61,7 +62,7 @@ build_container () {

# Login without echoing token, just in case
BASH_FLAGS="$-"
set +x
# set +x
echo "$GITHUB_TOKEN" | docker login ghcr.io \
-u "$GITHUB_ACTOR" \
--password-stdin
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 00c9c74

Please sign in to comment.