Update 3 files
This commit is contained in:
@@ -24,6 +24,7 @@ ENV CCACHE_MAXSIZE=2G
|
||||
|
||||
# Copy source files (this invalidates cache when source changes)
|
||||
COPY src/ src/
|
||||
COPY CMakeLists.txt ./
|
||||
|
||||
# Configure project (this step is cached unless CMakeLists.txt changes)
|
||||
RUN --mount=type=cache,target=/ccache \
|
||||
@@ -47,9 +48,9 @@ RUN --mount=type=cache,target=/ccache \
|
||||
${CMAKE_TOOLCHAIN_FILE:+-DCMAKE_TOOLCHAIN_FILE=$CMAKE_TOOLCHAIN_FILE}
|
||||
|
||||
# Run prebuild script
|
||||
RUN --mount=type=cache,target=/ccache \
|
||||
--mount=type=cache,target=/build \
|
||||
cmake --build /build --target run_prebuild_script
|
||||
#RUN --mount=type=cache,target=/ccache \
|
||||
# --mount=type=cache,target=/build \
|
||||
# cmake --build /build --target run_prebuild_script
|
||||
|
||||
# Build project (ccache will help here when only some files change)
|
||||
RUN --mount=type=cache,target=/ccache \
|
||||
|
Reference in New Issue
Block a user