test: Add 8 and update 14 files
This commit is contained in:
@@ -57,17 +57,19 @@ RUN --mount=type=cache,target=/ccache \
|
||||
--mount=type=cache,target=/build \
|
||||
cmake --build /build
|
||||
|
||||
# Copy the built executable to a regular directory for the final stage
|
||||
# Copy the built executables to a regular directory for the final stage
|
||||
RUN --mount=type=cache,target=/build \
|
||||
mkdir -p /output && \
|
||||
find /build -type f -executable -name "*${PROJECT}*" -exec cp {} /output/${PROJECT} \; || \
|
||||
find /build -type f -executable -exec cp {} /output/${PROJECT} \;
|
||||
find /build -type f -executable -exec cp {} /output/${PROJECT} \; && \
|
||||
if [ -f /build/hash_token ]; then cp /build/hash_token /output/hash_token; fi
|
||||
|
||||
# Final stage that only contains the binary
|
||||
# Final stage that only contains the binaries
|
||||
FROM scratch AS project
|
||||
|
||||
ARG PROJECT
|
||||
|
||||
# Copy the actual binary from the regular directory
|
||||
# Copy the actual binaries from the regular directory
|
||||
COPY --from=builder /output/${PROJECT} /${PROJECT}
|
||||
COPY --from=builder /output/hash_token /hash_token
|
||||
|
||||
|
Reference in New Issue
Block a user