-
Notifications
You must be signed in to change notification settings - Fork 11
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 #95 from JacobDomagala/94-update-report_pr_changes…
…_only-to-collect-the-list-of-changed-files [#94]: Improve `report_pr_changes_only` [#97]: Update base image [#96]: Fix `cmake_args` input
- Loading branch information
Showing
4 changed files
with
83 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,30 @@ | ||
FROM ubuntu:22.10 as base | ||
FROM ubuntu:23.04 as base | ||
|
||
# Define versions as environment variables | ||
ENV CLANG_VERSION=16 | ||
ENV CPPCHECK_VERSION=2.12.0 | ||
|
||
# Other environment variables | ||
ENV CXX=clang++ | ||
ENV CC=clang | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get install -y build-essential \ | ||
python3 python3-pip git clang-15 clang-tidy-15 wget libssl-dev ninja-build && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN pip3 install PyGithub | ||
|
||
RUN ln -s \ | ||
"$(which clang++-15)" \ | ||
/usr/bin/clang++ | ||
|
||
RUN ln -s \ | ||
"$(which clang-15)" \ | ||
/usr/bin/clang | ||
|
||
RUN ln -s \ | ||
/usr/bin/python3 \ | ||
/usr/bin/python | ||
|
||
RUN git clone https://github.com/Kitware/CMake.git && \ | ||
cd CMake && ./bootstrap && \ | ||
make -j4 && make install | ||
|
||
RUN wget 'https://sourceforge.net/projects/cppcheck/files/cppcheck/2.9/cppcheck-2.9.tar.gz/download' && \ | ||
tar xf download && \ | ||
cd cppcheck-2.9 && mkdir build && cd build && \ | ||
cmake -G "Ninja" .. && ninja install | ||
|
||
# Install dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential python3 python3-pip git clang-$CLANG_VERSION clang-tidy-$CLANG_VERSION wget libssl-dev ninja-build \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& pip3 install PyGithub --break-system-packages \ | ||
&& ln -s "$(which clang++-$CLANG_VERSION)" /usr/bin/clang++ \ | ||
&& ln -s "$(which clang-$CLANG_VERSION)" /usr/bin/clang \ | ||
&& ln -s /usr/bin/python3 /usr/bin/python | ||
|
||
WORKDIR /opt | ||
|
||
# Build CMake from source | ||
RUN git clone https://github.com/Kitware/CMake.git \ | ||
&& cd CMake && ./bootstrap && make -j4 && make install | ||
|
||
# Install cppcheck | ||
RUN git clone https://github.com/danmar/cppcheck.git \ | ||
&& cd cppcheck && git checkout tags/$CPPCHECK_VERSION && mkdir build && cd build && cmake -G Ninja .. && ninja all && ninja install |
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
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