From 0e96d1e1dfc0809ee5646c1b8320159aa8568d75 Mon Sep 17 00:00:00 2001 From: RenChu Wang Date: Mon, 1 Jul 2024 14:51:39 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Changed=20the=20configurat?= =?UTF-8?q?ion=20files.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Should resolve github actions error. --- .github/workflows/format.yaml | 8 ++++---- cpp/CMakeLists.txt | 6 +++--- cpp/c/CMakeLists.txt | 6 +++--- cpp/calculator/CMakeLists.txt | 4 ++-- cpp/namespace/CMakeLists.txt | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index eef0736..4bcf2b7 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -11,11 +11,11 @@ jobs: # C++ part - name: 🏗️ 🏃 clang-format - uses: DoozyX/clang-format-lint-action@v0.14 + uses: DoozyX/clang-format-lint-action@v0.16 with: - source: ./cxx - extensions: h,c,hxx,cxx - clangFormatVersion: 14 + source: ./cpp + extensions: h,c,hpp,cpp + clangFormatVersion: 16 # Python part - name: 🏗️ python 3.11 diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 3e20ab5..9ada9cf 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -4,12 +4,12 @@ project(C++) set(CMAKE_CXX_STANDARD 20) set(EXTENSION ".cpp") -file(GLOB files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *${EXTENSION}) +file(GLOB FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *${EXTENSION}) -foreach(file ${files}) +foreach(file ${FILES}) string(REPLACE ${EXTENSION} "" out ${file}) add_executable(${out} ${file}) -endforeach(file ${files}) +endforeach(file ${FILES}) subdirs("namespace") subdirs("calculator") diff --git a/cpp/c/CMakeLists.txt b/cpp/c/CMakeLists.txt index 6c42c42..5342140 100644 --- a/cpp/c/CMakeLists.txt +++ b/cpp/c/CMakeLists.txt @@ -4,9 +4,9 @@ project(C) set(CMAKE_C_STANDARD 17) set(EXTENSION ".c") -file(GLOB files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *${EXTENSION}) +file(GLOB FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *${EXTENSION}) -foreach(file ${files}) +foreach(file ${FILES}) string(REPLACE ${EXTENSION} "" out ${file}) add_executable(${out} ${file}) -endforeach(file ${files}) +endforeach(file ${FILES}) diff --git a/cpp/calculator/CMakeLists.txt b/cpp/calculator/CMakeLists.txt index 68d0db3..4997d12 100644 --- a/cpp/calculator/CMakeLists.txt +++ b/cpp/calculator/CMakeLists.txt @@ -5,7 +5,7 @@ set(CMAKE_CXX_STANDARD 20) find_package(fmt CONFIG REQUIRED) -file(GLOB files "*.cxx") -add_executable(Calculator ${files}) +file(GLOB FILES "*.cxx") +add_executable(Calculator ${FILES}) target_link_libraries(Calculator PRIVATE fmt::fmt) diff --git a/cpp/namespace/CMakeLists.txt b/cpp/namespace/CMakeLists.txt index 55da37d..f525c7a 100644 --- a/cpp/namespace/CMakeLists.txt +++ b/cpp/namespace/CMakeLists.txt @@ -4,9 +4,9 @@ project(Namespaces) set(CMAKE_CXX_STANDARD 20) set(EXTENSION ".cpp") -file(GLOB files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *${EXTENSION}) +file(GLOB FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *${EXTENSION}) -foreach(file ${files}) +foreach(file ${FILES}) string(REPLACE ${EXTENSION} "" out ${file}) add_executable(${out} ${file}) -endforeach(file ${files}) +endforeach(file ${FILES})