File tree 3 files changed +9
-6
lines changed 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
-
3
2
name : clang-format style check
4
3
5
4
on : # yamllint disable-line rule:truthy
25
24
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
26
25
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main"
27
26
sudo apt-get -y update
28
- sudo apt-get -y install --no-install-recommends --no-install-suggests clang-format
27
+ sudo apt-get -y install --no-install-recommends --no-install-suggests clang-format-19
28
+ sudo update-alternatives --install /usr/bin/clang-format clang-format $(which clang-format-19) 100
29
+ sudo update-alternatives --set clang-format $(update-alternatives --list clang-format | grep clang-format-19)
29
30
# yamllint enable rule:line-length
30
31
31
32
- name : Check Tools
Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ jobs:
24
24
- name : Install
25
25
shell : bash
26
26
run : |
27
- export VCPKG_VERSION=2025.01.13
28
- brew install vcpkg
27
+ export VCPKG_VERSION=2025.02.14
29
28
git clone \
30
29
--depth 1 \
31
30
--branch $VCPKG_VERSION \
32
31
https://github.com/microsoft/vcpkg.git \
33
32
--single-branch \
34
33
"$HOME/vcpkg"
35
34
export VCPKG_ROOT="$HOME/vcpkg"
35
+ echo "$VCPKG_ROOT" >> $GITHUB_PATH
36
36
sh $VCPKG_ROOT/bootstrap-vcpkg.sh
37
37
echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV
38
38
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ COVERAGE_TOOL_OPTS=--config-file .lcovrc --ignore-errors empty --ignore-errors i
28
28
29
29
# C++ specific
30
30
SRC_DIR = src
31
- FILES := $(shell find $(SRC_DIR ) -name '* .cpp' -o -name '* .h' -o -name '* .hpp' -o -name '* .inl')
31
+ FILES := $(shell find $(SRC_DIR ) -name '* .cpp' -o -name '* .c' -o -name ' * . h' -o -name '* .hpp' -o -name '* .inl')
32
32
33
33
.MAIN : test
34
34
.PHONY : all clean dependencies help list test outdated
@@ -142,7 +142,9 @@ compose/test: compose/build
142
142
compose/run : compose/build
143
143
${DOCKER_COMPOSE} --profile production run --rm algorithm-exercises-cpp ls -alhR
144
144
145
- all : env dependencies test
145
+ compose/all : compose/rebuild compose/test compose/lint
146
+
147
+ all : env dependencies test lint
146
148
147
149
run :
148
150
ls -alh
You can’t perform that action at this time.
0 commit comments