[CI] Create the per-measurement cache directories before mounting them

--mount type=bind refuses a missing source, and docker.sh only creates its
default cache directory, so both probe builds died at the mount.
This commit is contained in:
Lukas Brübach 2026-11-04 12:32:26 +01:00
parent 2bf0e3f93a
commit 2b515d0866

View file

@ -76,6 +76,9 @@ jobs:
export RUN_ARGS="$RUN_ARGS ${{ matrix.run_env }}" export RUN_ARGS="$RUN_ARGS ${{ matrix.run_env }}"
# One cache directory per measurement: a shared one would mix the two results. # One cache directory per measurement: a shared one would mix the two results.
export CCACHE_DIR="$CACHE/.ccache-g0" export CCACHE_DIR="$CACHE/.ccache-g0"
# --mount type=bind refuses a source that does not exist, and docker.sh only
# creates its default cache directory.
mkdir -p "$CCACHE_DIR"
export RUN_ARGS="$RUN_ARGS -e PROBE_CMAKE_ARGS=-DCOCKATRICE_DEBUG_INFO_LEVEL=0" export RUN_ARGS="$RUN_ARGS -e PROBE_CMAKE_ARGS=-DCOCKATRICE_DEBUG_INFO_LEVEL=0"
RUN ${{ matrix.leg }} --ccache "$CCACHE_BOUND" RUN ${{ matrix.leg }} --ccache "$CCACHE_BOUND"
echo "=== cache for -g0" echo "=== cache for -g0"
@ -88,6 +91,7 @@ jobs:
source .ci/docker.sh source .ci/docker.sh
export RUN_ARGS="$RUN_ARGS ${{ matrix.run_env }}" export RUN_ARGS="$RUN_ARGS ${{ matrix.run_env }}"
export CCACHE_DIR="$CACHE/.ccache-g1" export CCACHE_DIR="$CACHE/.ccache-g1"
mkdir -p "$CCACHE_DIR"
export RUN_ARGS="$RUN_ARGS -e PROBE_CMAKE_ARGS=-DCOCKATRICE_DEBUG_INFO_LEVEL=1" export RUN_ARGS="$RUN_ARGS -e PROBE_CMAKE_ARGS=-DCOCKATRICE_DEBUG_INFO_LEVEL=1"
RUN ${{ matrix.leg }} --ccache "$CCACHE_BOUND" RUN ${{ matrix.leg }} --ccache "$CCACHE_BOUND"
echo "=== cache for -g1" echo "=== cache for -g1"