ci: Refactor CMake CI
* Update CMake doc
* Update Docker diagram
* Refactor CI Makefile
* Refactor and Fix <lang>.Dockerfile
* Refactor gh Docker CMake workflow
* gh CMake workflow disable fail-fast
* Remove manylinux
* Add Java samplei, generated using:
$ mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart
-> com.google.ortools
-> sample
note: sample still not use ortools package yet
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
FROM ortools:archlinux_swig AS env
|
||||
FROM ortools/cmake:archlinux_swig AS env
|
||||
RUN pacman -Syu --noconfirm python python-pip
|
||||
|
||||
FROM env AS devel
|
||||
WORKDIR /home/lib
|
||||
WORKDIR /home/project
|
||||
COPY . .
|
||||
|
||||
FROM devel AS build
|
||||
@@ -14,16 +14,15 @@ FROM build AS test
|
||||
RUN cmake --build build --target test
|
||||
|
||||
FROM env AS install_env
|
||||
COPY --from=build /usr/local /usr/local/
|
||||
WORKDIR /home/sample
|
||||
COPY --from=build /home/project/build/python/dist/*.whl .
|
||||
RUN python -m pip install *.whl
|
||||
|
||||
FROM install_env AS install_devel
|
||||
WORKDIR /home/sample
|
||||
COPY ci/sample .
|
||||
COPY cmake/samples/python .
|
||||
|
||||
FROM install_devel AS install_build
|
||||
RUN cmake -S. -Bbuild
|
||||
RUN cmake --build build --target all -v
|
||||
RUN cmake --build build --target install
|
||||
RUN python -m compileall .
|
||||
|
||||
FROM install_build AS install_test
|
||||
RUN cmake --build build --target test
|
||||
RUN python sample.py
|
||||
|
||||
Reference in New Issue
Block a user