Skip to content

Commit

Permalink
ci: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Sep 21, 2023
1 parent a0c69f4 commit fc07c58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions ci/docker/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ ENV PATH=/usr/local/bin:$PATH
RUN apk add --no-cache git build-base linux-headers cmake

# Install Python
RUN apk add --no-cache python3-dev py3-pip py3-wheel py3-virtualenv
RUN apk add --no-cache \
python3-dev py3-pip py3-wheel \
py3-virtualenv

# Add the library src to our build env
FROM env AS devel
WORKDIR /home/project
COPY . .

FROM devel AS build
RUN cmake -version
RUN cmake --version
RUN cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
RUN cmake --build build --target all -v
RUN cmake --build build --target install -v
Expand All @@ -25,7 +27,9 @@ RUN cmake --build build --target test -v
# Test install rules
FROM env AS install_env
COPY --from=build /home/project/build/python/dist/*.whl ./
RUN python3 -m pip install --break-system-packages --find-links=. \
RUN python3 -m pip install \
--break-system-packages \
--find-links=. \
cmakepybind11*.whl

FROM install_env AS install_devel
Expand Down
4 changes: 3 additions & 1 deletion ci/docker/opensuse/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ RUN cmake --build build --target test -v
# Test install rules
FROM env AS install_env
COPY --from=build /home/project/build/python/dist/*.whl ./
RUN python3 -m pip install --break-system-packages --find-links=. \
RUN python3 -m pip install \
--break-system-packages \
--find-links=. \
cmakepybind11*.whl

FROM install_env AS install_devel
Expand Down

0 comments on commit fc07c58

Please sign in to comment.