Skip to content

Commit

Permalink
.github/workflows/config.yml: add --platform for qemu environment
Browse files Browse the repository at this point in the history
Fixes
```
+ docker run --rm --platform linux/amd64 -v /home/runner/work/EusLisp/EusLisp:/ws/euslisp -e ARCH=LinuxARM -t arm32v7/debian:unstable-slim bash -c '      set -x; set -e;      apt update -qq;      apt install -y -qq make gcc libgl-dev libglu1-mesa-dev libjpeg-dev libpng-dev libpq-dev libx11-dev libxext-dev;      CFLAGS='\''-Werror=implicit-function-declaration'\'' ARCH=LinuxARM EUSDIR=/ws/euslisp make -C /ws/euslisp/lisp/ -f Makefile.LinuxARM eus0;      CC='\''gcc -Werror'\'' ARCHDIR=LinuxARM EUSDIR=/ws/euslisp make -C /ws/euslisp/lisp/image/jpeg;      exit 0'
Unable to find image 'arm32v7/debian:unstable-slim' locally
unstable-slim: Pulling from arm32v7/debian
docker: no matching manifest for linux/amd64 in the manifest list entries.
```
  • Loading branch information
k-okada committed Dec 14, 2024
1 parent 1dac047 commit 959f9e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ jobs:
export TRAVIS_OS_NAME=linux
export DOCKER_IMAGE=${{matrix.DOCKER_IMAGE}}
if [[ "$DOCKER_IMAGE" == *"arm"* ]]; then sudo apt-get install -y -qq qemu-user-static git; fi
if [[ "$DOCKER_IMAGE" == *"arm64v8"* ]]; then export QEMU_VOLUME="-v /usr/bin/qemu-aarch64-static:/usr/bin/qemu-aarch64-static"; fi #
if [[ "$DOCKER_IMAGE" == *"arm64v8"* ]]; then export QEMU_VOLUME="-v /usr/bin/qemu-aarch64-static:/usr/bin/qemu-aarch64-static"; export PLATFORM_OPTION="--platform linux/aarch64"; fi #
echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME"
docker run --rm $QEMU_VOLUME -v $CI_SOURCE_PATH:$CI_SOURCE_PATH -e "DOCKER_IMAGE=$DOCKER_IMAGE" -e "COLLISION_LIB=$COLLISION_LIB" -e "CI_SOURCE_PATH=$CI_SOURCE_PATH" -e "HOME=$HOME" -t $DOCKER_IMAGE sh -c "cd $CI_SOURCE_PATH; ./.travis.sh"
docker run $PLATFORM_OPTION --rm $QEMU_VOLUME -v $CI_SOURCE_PATH:$CI_SOURCE_PATH -e "DOCKER_IMAGE=$DOCKER_IMAGE" -e "COLLISION_LIB=$COLLISION_LIB" -e "CI_SOURCE_PATH=$CI_SOURCE_PATH" -e "HOME=$HOME" -t $DOCKER_IMAGE sh -c "cd $CI_SOURCE_PATH; ./.travis.sh"
catkin:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 959f9e6

Please sign in to comment.