Skip to content

Commit

Permalink
lint-18
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Nov 10, 2024
1 parent d6d0955 commit 3d099e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .ci/docker/lint.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ RUN wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | tee /etc/apt/trusted.

FROM base AS deploy

RUN echo deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-19 main \
ARG clang_format_VERSION 19

RUN echo deb http://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-${clang_format_VERSION} main \
>/etc/apt/sources.list.d/llvm.list

COPY --from=tools /etc/apt/trusted.gpg.d/apt.llvm.org.asc /etc/apt/trusted.gpg.d/apt.llvm.org.asc

RUN --mount=type=cache,target=/var/cache/apt \
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
--no-install-recommends --no-install-suggests \
clang-format-19 \
clang-format-${clang_format_VERSION} \
fd-find
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-24.04
container: sergiud/hogpp:lint
container: sergiud/hogpp:lint-18
defaults:
run:
shell: bash -e -o pipefail {0}
Expand All @@ -17,7 +17,7 @@ jobs:

- name: Check code style
run: |
fdfind -g '*.[ch]pp' -x clang-format-19 --dry-run --Werror
fdfind -g '*.[ch]pp' -x clang-format-18 --dry-run --Werror
build-native:
name: ${{matrix.os}}-GCC-${{matrix.build_type}}
Expand Down
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,11 @@ lint:pypy3.10:
needs: []

lint:cpp:
image: sergiud/hogpp:lint
image: sergiud/hogpp:lint-18
stage: test
allow_failure: true
script:
- fdfind -g '*.[ch]pp' -x clang-format-19 --dry-run --Werror
- fdfind -g '*.[ch]pp' -x clang-format-18 --dry-run --Werror
needs: []

build:bookworm:
Expand Down

0 comments on commit 3d099e2

Please sign in to comment.