Skip to content

Commit

Permalink
Add llvm on ubuntu22
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Lesiak committed Jun 16, 2023
1 parent 6ed17a2 commit 22df06e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .cicd/platforms.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
},
"ubuntu22": {
"dockerfile": ".cicd/platforms/ubuntu22.Dockerfile"
},
"ubuntu22-llvm": {
"dockerfile": ".cicd/platforms/ubuntu22-llvm.Dockerfile"
}
}
24 changes: 24 additions & 0 deletions .cicd/platforms/ubuntu22-llvm.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM ubuntu:jammy

RUN apt-get update && apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential \
cmake \
wget \
git \
ninja-build \
python3 \
pkg-config \
libboost-all-dev \
libcurl4-gnutls-dev \
lsb-release \
software-properties-common \
gnupg \
libstdc++6 \
clang-tidy

RUN wget https://apt.llvm.org/llvm.sh
RUN chmod +x llvm.sh
RUN ./llvm.sh 16

ENV CC=clang-16
ENV CXX=clang-16
2 changes: 1 addition & 1 deletion .cicd/platforms/ubuntu22.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RUN apt-get update && apt-get upgrade -y && \
pkg-config \
libboost-all-dev \
libcurl4-gnutls-dev \
clang-tidy
clang-tidy
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ubuntu18, ubuntu20, ubuntu22]
platform: [ubuntu18, ubuntu20, ubuntu22, ubuntu22-llvm]
runs-on: ["self-hosted", "enf-x86-beefy"]
container: ${{fromJSON(needs.d.outputs.p)[matrix.platform].image}}
steps:
Expand Down

0 comments on commit 22df06e

Please sign in to comment.