try alpine for formatting

This commit is contained in:
Charles Schlosser 2024-12-08 01:09:33 +00:00
parent 1ac1af62ef
commit 08c31c3ba6

View File

@ -1,12 +1,10 @@
checkformat:clangformat: checkformat:clangformat:
stage: checkformat stage: checkformat
image: ubuntu:latest image: alpine:3.19
only: only:
- merge_requests - merge_requests
allow_failure: true allow_failure: true
before_script: before_script:
- export DEBIAN_FRONTEND=noninteractive - apk add --no-cache git clang17-extra-tools python3
- apt-get update -y
- apt-get install -y --no-install-recommends git clang-format clang-format-17
script: script:
- git clang-format-17 --diff --commit ${CI_MERGE_REQUEST_DIFF_BASE_SHA} - git clang-format --diff --commit ${CI_MERGE_REQUEST_DIFF_BASE_SHA}