From 4f9187a7bdf8655cb10c47578e9920bbfd85ff39 Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Tue, 16 Apr 2024 20:18:25 +0900 Subject: [PATCH] .github/workflows/config.yml: add debian-unstable reproduce - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066307 - https://buildd.debian.org/status/fetch.php?pkg=euslisp&arch=armel&ver=9.29%2Bdfsg-1&stamp=1713198693&file=log --- .github/workflows/config.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index 47525910f..859d4a38b 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -92,6 +92,38 @@ jobs: echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME on $QEMU_VOLUME" docker run --rm $QEMU_VOLUME -v $HOME:$HOME -e "QEMU=$QEMU" -e "TRAVIS_OS_NAME=$TRAVIS_OS_NAME" -e "CI_SOURCE_PATH=$CI_SOURCE_PATH" -e "HOME=$HOME" -e "MAKEFLAGS=$MAKEFLAGS" -e "DOCKER_IMAGE=$DOCKER_IMAGE" -t $DOCKER_IMAGE sh -c "cd $CI_SOURCE_PATH; ./.travis.sh" + debian-unstable: + strategy: + matrix: + include: + - DOCKER_IMAGE: amd64/debian:unstable-slim + ARCH: Linux64 + - DOCKER_IMAGE: arm32v7/debian:unstable-slim + ARCH: LinuxARM + - DOCKER_IMAGE: arm64v8/debian:unstable-slim + ARCH: LinuxARM + + runs-on: ubuntu-latest + timeout-minutes: 60 + + name: debian-unstale + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Run test + shell: bash + run: | + export DOCKER_IMAGE=${{matrix.DOCKER_IMAGE}} + export ARCH=${{matrix.ARCH}} + set -x + sudo apt update -qq + # Install the qemu packages + # This step will execute the registering scripts + if [[ "$DOCKER_IMAGE" == *"arm"* ]]; then \ + sudo apt install -y -qq qemu binfmt-support qemu-user-static; \ + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes; \ + fi + docker run --rm -v $(pwd):/ws/euslisp -e "ARCH=$ARCH" -ti "$DOCKER_IMAGE" 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; ARCH=$ARCH EUSDIR=/ws/euslisp make -C /ws/euslisp/lisp/ -f Makefile.$ARCH eus0; CC='gcc -Werror' ARCHDIR=$ARCH EUSDIR=/ws/euslisp make -C /ws/euslisp/lisp/image/jpeg; exit 0" osx: runs-on: macos-latest