Skip to content

Commit 6c1e390

Browse files
added docker test build images for clang 19,20,21,22
1 parent d94c8c6 commit 6c1e390

File tree

5 files changed

+69
-1
lines changed

5 files changed

+69
-1
lines changed

.github/workflows/cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
version: [15 ,16 ,17 ,18]
14+
version: [15 ,16 ,17 ,18 ,19 ,20 ,21]
1515
steps:
1616
- uses: actions/checkout@v3
1717
- name: Get LLVM

docker/19/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM debian:bullseye-slim
2+
3+
RUN apt update && apt upgrade -y
4+
RUN apt install -y wget cmake git lsb-release software-properties-common gnupg2
5+
RUN wget https://apt.llvm.org/llvm.sh && chmod +x ./llvm.sh && ./llvm.sh 19
6+
RUN apt install -y llvm-19-dev libclang-common-19-dev libclang-19-dev clang-19 libclang-cpp19-dev
7+
8+
RUN git clone https://github.com/bloodstalker/cgrep \
9+
&& cd cgrep \
10+
&& git submodule init \
11+
&& git submodule update \
12+
&& mkdir build \
13+
&& cd build \
14+
&& cmake ../ -DLLVM_CONF=llvm-config-19 -DCMAKE_CXX_COMPILER=clang++-19 -DUSE_MONOLITH_LIBTOOLING=ON\
15+
&& make
16+
17+
RUN rm -rf /var/apt/cache

docker/20/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM debian:bullseye-slim
2+
3+
RUN apt update && apt upgrade -y
4+
RUN apt install -y wget cmake git lsb-release software-properties-common gnupg2
5+
RUN wget https://apt.llvm.org/llvm.sh && chmod +x ./llvm.sh && ./llvm.sh 20
6+
RUN apt install -y llvm-20-dev libclang-common-20-dev libclang-20-dev clang-20 libclang-cpp20-dev
7+
8+
RUN git clone https://github.com/bloodstalker/cgrep \
9+
&& cd cgrep \
10+
&& git submodule init \
11+
&& git submodule update \
12+
&& mkdir build \
13+
&& cd build \
14+
&& cmake ../ -DLLVM_CONF=llvm-config-20 -DCMAKE_CXX_COMPILER=clang++-20 -DUSE_MONOLITH_LIBTOOLING=ON\
15+
&& make
16+
17+
RUN rm -rf /var/apt/cache

docker/21/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM debian:bullseye-slim
2+
3+
RUN apt update && apt upgrade -y
4+
RUN apt install -y wget cmake git lsb-release software-properties-common gnupg2
5+
RUN wget https://apt.llvm.org/llvm.sh && chmod +x ./llvm.sh && ./llvm.sh 21
6+
RUN apt install -y llvm-21-dev libclang-common-21-dev libclang-21-dev clang-21 libclang-cpp21-dev
7+
8+
RUN git clone https://github.com/bloodstalker/cgrep \
9+
&& cd cgrep \
10+
&& git submodule init \
11+
&& git submodule update \
12+
&& mkdir build \
13+
&& cd build \
14+
&& cmake ../ -DLLVM_CONF=llvm-config-21 -DCMAKE_CXX_COMPILER=clang++-21 -DUSE_MONOLITH_LIBTOOLING=ON\
15+
&& make
16+
17+
RUN rm -rf /var/apt/cache

docker/22/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM debian:bullseye-slim
2+
3+
RUN apt update && apt upgrade -y
4+
RUN apt install -y wget cmake git lsb-release software-properties-common gnupg2
5+
RUN wget https://apt.llvm.org/llvm.sh && chmod +x ./llvm.sh && ./llvm.sh 22
6+
RUN apt install -y llvm-22-dev libclang-common-22-dev libclang-22-dev clang-22 libclang-cpp22-dev
7+
8+
RUN git clone https://github.com/bloodstalker/cgrep \
9+
&& cd cgrep \
10+
&& git submodule init \
11+
&& git submodule update \
12+
&& mkdir build \
13+
&& cd build \
14+
&& cmake ../ -DLLVM_CONF=llvm-config-22 -DCMAKE_CXX_COMPILER=clang++-22 -DUSE_MONOLITH_LIBTOOLING=ON\
15+
&& make
16+
17+
RUN rm -rf /var/apt/cache

0 commit comments

Comments
 (0)