Skip to content

Commit ff86d8c

Browse files
authored
feat: support clang v20 (#97)
* feat: support clang v20 * update since v20 need new image
1 parent 66eb04d commit ff86d8c

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
build:
2424
strategy:
2525
matrix:
26-
target: [ "all", "19", "18", "17", "16", "16-alpine", "15", "14", "13", "12", "11", "10", "9", "8", "7"]
26+
target: [ "all", "20", "19", "18", "17", "16", "16-alpine", "15", "14", "13", "12", "11", "10", "9", "8", "7"]
2727
runs-on: ubuntu-latest
2828
steps:
2929
- uses: actions/checkout@v4

Dockerfile.all

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN set -e \
1818
apt-get --no-install-recommends -y install clang-format-$CLANG_VERSION clang-tidy-$CLANG_VERSION; done \
1919
&& rm -rf /var/lib/apt/lists/*
2020

21-
ENV CLANG_VERSIONS="19 18 17 16 15 14 13"
21+
ENV CLANG_VERSIONS="20 19 18 17 16 15 14 13"
2222

2323
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
2424

@@ -33,7 +33,7 @@ RUN set -e \
3333
&& rm llvm.sh \
3434
&& rm -rf /var/lib/apt/lists/*
3535

36-
ENV CLANG_VERSIONS="19 18 17 16 15 14 13 12 11 10 9"
36+
ENV CLANG_VERSIONS="20 19 18 17 16 15 14 13 12 11 10 9"
3737
# Integrity testing
3838
RUN set -e \
3939
&& for VERSION in $CLANG_VERSIONS; do \

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ You can access all available Clang Tools Docker images via [Docker Hub registry
1212

1313
## Supported Tags and Dockerfile links
1414

15-
* [`all`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile.all) (Supports versions of clang-tools includes `19`, `18`, `17`, `16`, `15`, `14`, `13`, `12`, `11`, `10`, `9`)
15+
* [`all`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile.all) (Supports versions of clang-tools includes `20`, `19`, `18`, `17`, `16`, `15`, `14`, `13`, `12`, `11`, `10`, `9`)
16+
* [`20`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile)
1617
* [`19`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile)
1718
* [`18`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile)
1819
* [`17`](https://github.com/cpp-linter/clang-tools-docker/blob/master/Dockerfile)

docker-bake.hcl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
group "default" {
33
targets = [
44
"all",
5+
"20",
56
"19",
67
"18",
78
"17",
@@ -42,6 +43,25 @@ target "all" {
4243
platforms = ["linux/amd64"]
4344
}
4445

46+
target "clang-tools" {
47+
matrix = {
48+
tgt = ["20"]
49+
}
50+
name = "${tgt}"
51+
dockerfile = "Dockerfile"
52+
context = "."
53+
args = {
54+
# https://packages.ubuntu.com/search?suite=default&section=all&arch=any&keywords=clang-format-20&searchon=names
55+
BASE_IMAGE="ubuntu:plucky"
56+
CLANG_VERSION="${tgt}",
57+
}
58+
tags = [
59+
"${DOCKER_REPO}:${tgt}",
60+
"${GITHUB_REPO}:${tgt}"
61+
]
62+
platforms = ["linux/amd64"]
63+
}
64+
4565
target "clang-tools" {
4666
matrix = {
4767
tgt = ["19"]

0 commit comments

Comments
 (0)