From b207942acc1b8fdb424a08bcaaf35f05d59edb02 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Tue, 8 Sep 2026 19:42:05 -0400 Subject: [PATCH] Skip i386 apt install when the job runs in a container. Container images often lack sudo; FEniCS x86 CI failed with exit 127. Co-authored-by: Cursor --- .github/workflows/tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 18187ec..229279e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -144,7 +144,9 @@ jobs: # the i386 dynamic loader and C/C++ runtime. setup-julia invokes julia # during its own step, so these must be installed BEFORE it — otherwise # the run fails with `spawn .../x86/bin/julia ENOENT` (missing loader). - if: "${{ (inputs.julia-arch == 'x86' || inputs.julia-arch == 'i686') && runner.os == 'Linux' }}" + # Skip inside job containers: many images lack passwordless sudo (e.g. + # FEniCS), and multiarch packages must be baked into the image instead. + if: "${{ (inputs.julia-arch == 'x86' || inputs.julia-arch == 'i686') && runner.os == 'Linux' && inputs.container == '' }}" run: | sudo dpkg --add-architecture i386 sudo apt-get update