8000 [CONFIG] [Github Actions] clang-format (code styling check) set to cl… by sir-gon · Pull Request #78 · sir-gon/algorithm-exercises-cpp · GitHub
[go: up one dir, main page]

Skip to content

[CONFIG] [Github Actions] clang-format (code styling check) set to cl… #78

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

Merged
merged 4 commits into from
Mar 3, 2025
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
5 changes: 3 additions & 2 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

name: clang-format style check

on: # yamllint disable-line rule:truthy
Expand All @@ -25,7 +24,9 @@ jobs:
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main"
sudo apt-get -y update
sudo apt-get -y install --no-install-recommends --no-install-suggests clang-format
sudo apt-get -y install --no-install-recommends --no-install-suggests clang-format-19
sudo update-alternatives --install /usr/bin/clang-format clang-format $(which clang-format-19) 100
sudo update-alternatives --set clang-format $(update-alternatives --list clang-format | grep clang-format-19)
# yamllint enable rule:line-length

- name: Check Tools
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cpp-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ jobs:
- name: Install
shell: bash
run: |
export VCPKG_VERSION=2025.01.13
brew install vcpkg
export VCPKG_VERSION=2025.02.14
git clone \
--depth 1 \
--branch $VCPKG_VERSION \
https://github.com/microsoft/vcpkg.git \
--single-branch \
"$HOME/vcpkg"
export VCPKG_ROOT="$HOME/vcpkg"
echo "$VCPKG_ROOT" >> $GITHUB_PATH
sh $VCPKG_ROOT/bootstrap-vcpkg.sh
echo "VCPKG_ROOT=$HOME/vcpkg" >> $GITHUB_ENV

Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ COVERAGE_TOOL_OPTS=--config-file .lcovrc --ignore-errors empty --ignore-errors i

# C++ specific
SRC_DIR = src
FILES := $(shell find $(SRC_DIR) -name '*.cpp' -o -name '*.h' -o -name '*.hpp' -o -name '*.inl')
FILES := $(shell find $(SRC_DIR) -name '*.cpp' -o -name '*.c' -o -name '*.h' -o -name '*.hpp' -o -name '*.inl')

.MAIN: test
.PHONY: all clean dependencies help list test outdated
Expand Down Expand Up @@ -142,7 +142,9 @@ compose/test: compose/build
compose/run: compose/build
${DOCKER_COMPOSE} --profile production run --rm algorithm-exercises-cpp ls -alhR

all: env dependencies test
compose/all: compose/rebuild compose/test compose/lint

all: env dependencies test lint

run:
ls -alh
0