From 076d1b30d0ce90e0856e569b9ad32a7f030f3684 Mon Sep 17 00:00:00 2001 From: Tarik Moussa Date: Sat, 9 May 2026 22:41:47 +0200 Subject: [PATCH] =?UTF-8?q?ci:=20fix=20pipeline=20=E2=80=93=20remove=20con?= =?UTF-8?q?tainer=20until=20arm64=20image=20is=20rebuilt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ci-cpp image was likely built for linux/amd64; the eulernest runner is linux/arm64 (Raspberry Pi), so the container exited immediately without running any steps (task 102 log: 10 lines, no step output). Fix: run directly on the host runner and install cmake/g++ via apt-get (same approach as the previously working workflow). Also pin --platform=linux/arm64 in Dockerfile.ci-cpp so the next image build produces the correct architecture. Once the image is pushed, re-add the container: block to the workflow. Co-Authored-By: Claude Sonnet 4.6 --- .gitea/docker/Dockerfile.ci-cpp | 2 +- .gitea/workflows/cpp-tests.yml | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitea/docker/Dockerfile.ci-cpp b/.gitea/docker/Dockerfile.ci-cpp index e260036..1fa81a3 100644 --- a/.gitea/docker/Dockerfile.ci-cpp +++ b/.gitea/docker/Dockerfile.ci-cpp @@ -1,4 +1,4 @@ -FROM ubuntu:22.04 +FROM --platform=linux/arm64 ubuntu:22.04 # Node.js 20 from NodeSource (Ubuntu Jammy ships v12 which is too old # for actions/checkout@v4 — static class blocks require Node.js >= 16). diff --git a/.gitea/workflows/cpp-tests.yml b/.gitea/workflows/cpp-tests.yml index 722093a..ab9563d 100644 --- a/.gitea/workflows/cpp-tests.yml +++ b/.gitea/workflows/cpp-tests.yml @@ -11,12 +11,17 @@ on: jobs: test: runs-on: eulernest - container: - image: git.eulernest.eu/conformallab/ci-cpp:latest + # container image intentionally omitted until ci-cpp:latest is + # rebuilt for linux/arm64 and pushed to git.eulernest.eu steps: - uses: actions/checkout@v4 + - name: Install build tools + run: | + sudo apt-get update -qq + sudo apt-get install -y --no-install-recommends cmake g++ git ca-certificates + - name: Configure (tests-only mode) run: cmake -S code -B build -DCMAKE_BUILD_TYPE=Release @@ -33,10 +38,9 @@ jobs: if: always() run: | if [ -f test-results.xml ]; then - total=$(grep -o 'tests="[0-9]*"' test-results.xml | grep -o '[0-9]*' | head -1) + total=$(grep -o 'tests="[0-9]*"' test-results.xml | grep -o '[0-9]*' | head -1) failed=$(grep -o 'failures="[0-9]*"' test-results.xml | grep -o '[0-9]*' | head -1) skipped=$(grep -o 'skipped="[0-9]*"' test-results.xml | grep -o '[0-9]*' | head -1) passed=$(( ${total:-0} - ${failed:-0} - ${skipped:-0} )) - echo "" echo "TOTAL: ${total:-0} | PASSED: $passed | FAILED: ${failed:-0} | SKIPPED: ${skipped:-0}" fi