Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a formatting image with clang-format 18 #106

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- centos8-lcg101-gcc11
- format10
- format14
- format18
- ubuntu2004
- ubuntu2004_cuda
- ubuntu2004_cuda_oneapi
Expand Down
20 changes: 20 additions & 0 deletions format18/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Docker machinery, part of the ACTS project
#
# (c) 2024 CERN for the benefit of the ACTS project
#
# Mozilla Public License Version 2.0

FROM ubuntu:24.04

LABEL description="Ubuntu with clang-format v18"
LABEL maintainer="Stephen Nicholas Swatman <[email protected]>"
# increase whenever any of the RUN commands change
LABEL version="1"

RUN apt-get -y update \
&& apt-get -y install clang-format-18 git \
&& apt-get clean all \
&& update-alternatives \
--install /usr/bin/clang-format clang-format /usr/bin/clang-format-18 100 \
--slave /usr/bin/clang-format-diff clang-format-diff /usr/bin/clang-format-diff-18 \
--slave /usr/bin/git-clang-format git-clang-format /usr/bin/git-clang-format-18