SIGN IN SIGN UP
google / or-tools UNCLAIMED

Google's Operations Research tools:

0 0 0 C++
FROM ortools/cmake:debian_base AS env
2024-07-22 13:53:01 +02:00
2020-03-30 12:53:09 +02:00
RUN cmake -version
FROM env AS devel
WORKDIR /home/project
2020-03-30 12:53:09 +02:00
COPY . .
ARG CMAKE_BUILD_PARALLEL_LEVEL
ENV CMAKE_BUILD_PARALLEL_LEVEL=${CMAKE_BUILD_PARALLEL_LEVEL:-4}
2020-03-30 12:53:09 +02:00
FROM devel AS build
RUN cmake -S. -Bbuild -DBUILD_DEPS=ON
RUN cmake --build build --target all -v
2020-03-30 12:53:09 +02:00
RUN cmake --build build --target install
FROM build AS test
RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
2020-03-30 12:53:09 +02:00
FROM env AS install_env
COPY --from=build /usr/local /usr/local/
FROM install_env AS install_devel
WORKDIR /home/sample
COPY cmake/samples/cpp .
2020-03-30 12:53:09 +02:00
FROM install_devel AS install_build
RUN cmake -S. -Bbuild
RUN cmake --build build --target all -v
RUN cmake --build build --target install
FROM install_build AS install_test
RUN cmake --build build --target test