From ea884cfde591559fb9648bc24b4ad0d67b5557fd Mon Sep 17 00:00:00 2001 From: Christian Treffs Date: Sat, 17 Oct 2026 15:44:22 +0200 Subject: [PATCH] Run Linux CI in official Swift containers swift-actions/setup-swift@v3 (#57) fails on Linux while verifying the toolchain signature with gpg. Run the Linux job in swift: images instead, like the Cross-Compile jobs, so Linux CI no longer depends on setup-swift. Install python3 for check-inlinable.sh if the image lacks it. Claude-Session: https://claude.ai/code/session_011WSUtoLptjea3s3iC5wTNC --- .github/workflows/ci-linux.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index e13a9ff..212e206 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -11,6 +11,8 @@ jobs: linux: name: Linux (Swift ${{ matrix.swift }}) runs-on: ubuntu-latest + # Official Swift images instead of swift-actions/setup-swift, whose v3 fails on Linux (#57). + container: swift:${{ matrix.swift }} strategy: fail-fast: false matrix: @@ -20,13 +22,10 @@ jobs: - name: Checkout uses: actions/checkout@v7 - - name: Setup Swift - uses: swift-actions/setup-swift@v2 - with: - swift-version: ${{ matrix.swift }} - - name: Run Tests (Release) run: swift test -c release --parallel -Xswiftc -warnings-as-errors - name: Check @inlinable Coverage - run: Scripts/check-inlinable.sh + run: | + command -v python3 >/dev/null || { apt-get update -q && apt-get install -yq python3; } + Scripts/check-inlinable.sh