Skip to content

Commit

Permalink
⚙️ Changed the configuration files.
Browse files Browse the repository at this point in the history
Should resolve github actions error.
  • Loading branch information
rentruewang committed Jul 1, 2024
1 parent cbf1644 commit 0e96d1e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
6 changes: 3 additions & 3 deletions cpp/c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
4 changes: 2 additions & 2 deletions cpp/calculator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
6 changes: 3 additions & 3 deletions cpp/namespace/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

0 comments on commit 0e96d1e

Please sign in to comment.