cmake(ci): Fixup from main
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
FROM ortools/cmake:almalinux_swig AS env
|
||||
|
||||
RUN dnf -y update \
|
||||
&& dnf -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel maven \
|
||||
&& dnf -y install java-11-openjdk java-11-openjdk-devel maven \
|
||||
&& dnf clean all \
|
||||
&& rm -rf /var/cache/dnf
|
||||
RUN alternatives --set java /usr/lib/jvm/java-11-openjdk*.x86_64/bin/java
|
||||
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk
|
||||
|
||||
FROM env AS devel
|
||||
WORKDIR /home/project
|
||||
|
||||
@@ -14,7 +14,7 @@ COPY . .
|
||||
FROM devel AS build
|
||||
RUN cmake -version
|
||||
RUN cmake -S. -Bbuild -DBUILD_DOTNET=ON -DBUILD_CXX_SAMPLES=OFF -DBUILD_CXX_EXAMPLES=OFF
|
||||
RUN cmake --build build --target all -v
|
||||
RUN OPENSSL_ENABLE_SHA1_SIGNATURES=1 cmake --build build --target all -v
|
||||
RUN cmake --build build --target install -v
|
||||
|
||||
FROM build AS test
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
FROM ortools/cmake:rockylinux_swig AS env
|
||||
|
||||
RUN dnf -y update \
|
||||
&& dnf -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel maven \
|
||||
&& dnf -y install java-11-openjdk java-11-openjdk-devel maven \
|
||||
&& dnf clean all \
|
||||
&& rm -rf /var/cache/dnf
|
||||
RUN alternatives --set java /usr/lib/jvm/java-11-openjdk-11.*.x86_64/bin/java
|
||||
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk
|
||||
|
||||
FROM env AS devel
|
||||
WORKDIR /home/project
|
||||
|
||||
@@ -32,7 +32,7 @@ RUN CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target test
|
||||
FROM env AS install_env
|
||||
WORKDIR /home/sample
|
||||
COPY --from=build /home/project/build/python/dist/*.whl .
|
||||
RUN python -m pip install *.whl
|
||||
RUN python -m pip install --break-system-packages *.whl
|
||||
|
||||
FROM install_env AS install_devel
|
||||
COPY cmake/samples/python .
|
||||
|
||||
Reference in New Issue
Block a user