ci(ubicloud): copy sysroot headers out of the docker volume for the GAL build

build-gal-webgl-test.sh compiles kicad headers that need boost from
build-wasm/sysroot/include — a host dir on dev machines but inside the
kicad-build-cache docker volume on CI (run 27370316200: ptr_vector.hpp not
found). The Makefile uses only $(SYSROOT)/include, so headers suffice.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Istvan Matejcsok 2026-06-11 22:31:39 +02:00
commit c7e507ced6

View file

@ -81,6 +81,20 @@ jobs:
- name: Build wxWidgets test apps
run: ./scripts/build-wasm-test.sh
# The GAL test compiles against kicad headers that include boost from
# build-wasm/sysroot — a real host dir on dev machines, but inside the
# docker build-cache volume on CI (run 27370316200 failed with
# "boost/ptr_container/ptr_vector.hpp not found"). Its Makefile only
# needs $(SYSROOT)/include, so copy just the headers out of the volume.
- name: Expose docker sysroot headers to host builds
run: |
VOL=$(docker volume ls -q --filter name=kicad-build-cache | head -1)
echo "sysroot volume: $VOL"
mkdir -p build-wasm/sysroot
docker run --rm -v "$VOL":/bw -v "$PWD/build-wasm/sysroot":/host alpine \
sh -c 'cp -r /bw/sysroot/include /host/'
sudo chown -R "$(id -u):$(id -g)" build-wasm/sysroot
# gal_webgl_test.{js,wasm} are gitignored build artifacts with their own
# build script — without this, all 29 gal-webgl scenarios time out on
# galTest.isReady() because the page 404s the wasm (run 27359020746).