diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index 8f8c778af..a96e01763 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -84,6 +84,8 @@ jobs: export ROS_DISTRO=${{matrix.ROS_DISTRO}} export QEMU=${{matrix.QEMU}} export MAKEFLAGS="-j4" + if [[ "$DOCKER_IMAGE" == *"armhf"* ]]; then sudo add-apt-repository -y ppa:canonical-server/server-backports; fi # install qemu 6.0 to fix segfault / https://askubuntu.com/a/1344079 + if [[ "$QEMU" != "" || "$DOCKER_IMAGE" == *"arm"* ]]; then sudo apt update -y -qq; fi if [[ "$QEMU" != "" ]]; then sudo apt-get install -y -qq qemu-user-static; ls /usr/bin/qemu-*-static; export QEMU_VOLUME="-v /usr/bin/qemu-$QEMU-static:/usr/bin/qemu-$QEMU-static" ; fi if [[ "$QEMU" != "" ]]; then docker run --rm --privileged multiarch/qemu-user-static:register; fi if [[ "$DOCKER_IMAGE" == *"arm"* ]]; then sudo apt-get install -y -qq qemu-user-static; fi