File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 4141
4242 - uses : actions/cache@v4
4343 with :
44- path : ~ /ccache
44+ path : docker-output/build /ccache
4545 key : ${{ matrix.target }}-${{ github.ref }}-${{ github.sha }}
4646 restore-keys : ${{ matrix.target }}-${{ github.ref }}
4747
Original file line number Diff line number Diff line change @@ -40,7 +40,16 @@ ARG VT_UNITY_BUILD_ENABLED
4040ARG VT_WERROR_ENABLED
4141ARG VT_ZOLTAN_ENABLED
4242
43- RUN --mount=target=/vt --mount=type=cache,target=/build/ccache \
43+ RUN --mount=target=/vt \
44+ <<EOF
45+ if [ -d vt/docker-output/build/ccache ]; then
46+ cp -r vt/docker-output/build/ccache /build
47+ ccache -c
48+ ccache -s
49+ fi
50+ EOF
51+
52+ RUN --mount=target=/vt \
4453 /vt/ci/build_cpp.sh /vt /build && \
4554 /vt/ci/test_cpp.sh /vt /build && \
4655 /vt/ci/build_vt_sample.sh /vt /build
Original file line number Diff line number Diff line change @@ -167,6 +167,12 @@ target "vt-build" {
167167 target = " build"
168168 context = " ."
169169 dockerfile = " ci/docker/vt.dockerfile"
170+ output = [
171+ {
172+ type = " local"
173+ dest = " docker-output"
174+ }
175+ ]
170176 platforms = [
171177 " linux/amd64" ,
172178 # "linux/arm64"
You can’t perform that action at this time.
0 commit comments