-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #377 from Mizux/main
Fix ci
- Loading branch information
Showing
3 changed files
with
72 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,25 +5,22 @@ LABEL maintainer="[email protected]" | |
# Install system build dependencies | ||
ENV PATH=/usr/local/bin:$PATH | ||
RUN apt-get update -qq \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq git wget libssl-dev build-essential \ | ||
ninja-build python3 python3-venv pkgconf libglib2.0-dev \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq \ | ||
git wget libssl-dev \ | ||
build-essential cmake ninja-build \ | ||
python3 python3-venv \ | ||
pkgconf libglib2.0-dev \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
ENTRYPOINT ["/usr/bin/bash", "-c"] | ||
CMD ["/usr/bin/bash"] | ||
|
||
# Install CMake 3.21.3 | ||
RUN wget "https://cmake.org/files/v3.21/cmake-3.21.3-linux-x86_64.sh" \ | ||
&& chmod a+x cmake-3.21.3-linux-x86_64.sh \ | ||
&& ./cmake-3.21.3-linux-x86_64.sh --prefix=/usr/local/ --skip-license \ | ||
&& rm cmake-3.21.3-linux-x86_64.sh | ||
|
||
FROM env AS devel | ||
WORKDIR /home/project | ||
COPY . . | ||
|
||
ARG TARGET | ||
ENV TARGET ${TARGET:-unknown} | ||
ENV TARGET=${TARGET:-unknown} | ||
|
||
FROM devel AS build | ||
RUN cmake -version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters