CI builds for Debian 12 are consistently failing at the same point.
The issue is being caused by being unable to find the host Swift install for bootstrapping.
See build logs -
-- Warning: {} Host toolchain could not locate a compiler to build swift-driver.
This problem seems to be unique to Debian Docker containers being started via ssh e.g. a Jenkins pipeline build.
When the container is started via ssh the saved env PATH is overwritten.
CI builds for Debian 12 are consistently failing at the same point.
The issue is being caused by being unable to find the host Swift install for bootstrapping. See build logs -
-- Warning: {} Host toolchain could not locate a compiler to build swift-driver.
This problem seems to be unique to Debian Docker containers being started via
ssh
e.g. a Jenkins pipeline build. When the container is started viassh
the savedenv PATH
is overwritten.The solution is to add the PATH to
/etc/profile