From ddffd5cd786410636c15588822c617de5d5c6e04 Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Mon, 3 Mar 2025 15:46:55 -0300 Subject: [PATCH 1/4] [CONFIG] [Github Actions] clang-format (code styling check) set to clang-format-19. --- .github/workflows/clang-format.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index e5a4ae3..60c87cb 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -1,5 +1,4 @@ --- - name: clang-format style check on: # yamllint disable-line rule:truthy @@ -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 From 3f326380eec326e2a0eced4337d1a769fb16a8ff Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Mon, 3 Mar 2025 15:54:24 -0300 Subject: [PATCH 2/4] [CONFIG] [Github Actions] c-macos: simplified way to install vcpkg. vcpkg upgraded. --- .github/workflows/cpp-macos.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cpp-macos.yml b/.github/workflows/cpp-macos.yml index 37b6e35..f864187 100644 --- a/.github/workflows/cpp-macos.yml +++ b/.github/workflows/cpp-macos.yml @@ -24,8 +24,7 @@ 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 \ @@ -33,6 +32,7 @@ jobs: --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 From 8ac95c425161b45596f1b178765ea4256afc0b26 Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Mon, 3 Mar 2025 15:55:38 -0300 Subject: [PATCH 3/4] [CONFIG] Makefile: code styling extented to .c files --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f0c3529..af0a611 100644 --- a/Makefile +++ b/Makefile @@ -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 From 4241efcb5ffbf492ae774ddbdceedfed53fa7a5b Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Mon, 3 Mar 2025 16:00:10 -0300 Subject: [PATCH 4/4] [CONFIG] Makefile: new compose/all action --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index af0a611..7cb855f 100644 --- a/Makefile +++ b/Makefile @@ -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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy