Skip to content

Commit 3c11031

Browse files
chore: move to LLVM-16 (#5)
* chore: move to `LLVM-16` * Use docker not kaniko Signed-off-by: Deepak Raj H R <[email protected]> --------- Signed-off-by: Deepak Raj H R <[email protected]> Co-authored-by: Deepak Raj H R <[email protected]>
1 parent 8289f8f commit 3c11031

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ RUN apt-get update \
1010
&& apt-get install -y git cmake build-essential byacc libpcre3 libpcre3-dev grep lsb-release wget software-properties-common gnupg libcurl4-openssl-dev unzip lcov --no-install-recommends # skipcq: DOK-DL3018
1111

1212
# Get LLVM
13-
ARG LLVM_VER=15
13+
ARG LLVM_VER=16
1414
RUN wget --no-verbose https://apt.llvm.org/llvm.sh
1515
RUN chmod +x ./llvm.sh \
1616
&& ./llvm.sh ${LLVM_VER} \
1717
&& apt-get -y install libclang-${LLVM_VER}-dev libclang-cpp${LLVM_VER}-dev --no-install-recommends \
1818
&& apt-get clean \
19-
&& rm -rf /var/lib/apt/lists/*
19+
&& rm -rf /var/lib/apt/lists/* \
20+
&& ln -s /usr/lib/x86_64-linux-gnu/libclang-16.so.16.0.6 /usr/lib/x86_64-linux-gnu/libclang-16.so.16
2021

2122
# Add environment variables for build
2223
ENV PATH="$PATH:/usr/lib/llvm-${LLVM_VER}/bin"

cloudbuild_depl_dev.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
timeout: 30m0s
22

33
steps:
4-
- name: 'gcr.io/kaniko-project/executor:v1.0.0'
4+
- name: 'gcr.io/cloud-builders/docker'
55
args:
6-
- --destination=us.gcr.io/deepsource-dev/cppcheck-deepsource:dev
7-
- --dockerfile=Dockerfile
8-
- --cache=true
9-
- --cache-ttl=24h
10-
- --snapshotMode=redo
6+
- build
7+
- --tag=us.gcr.io/deepsource-dev/cppcheck-deepsource:dev
8+
- .
9+
10+
images: ['us.gcr.io/deepsource-dev/cppcheck-deepsource:dev']
1111

1212
options:
1313
machineType: 'E2_HIGHCPU_8'

0 commit comments

Comments
 (0)