From b87ef8c6f9839a3c7c61a1dc50ab4c45bd637c1d Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Mon, 10 Jan 2022 17:35:39 +0900 Subject: [PATCH] install qemu 6.0 to resolve sgfault error on armhf/{trusty/xenial} --- .github/workflows/config.yml | 2 ++ 1 file changed, 2 insertions(+) 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