Skip to content

Commit 69caa9d

Browse files
author
Julian LALU
committed
Improve compile time build and fix compilations
1 parent 631ab7c commit 69caa9d

23 files changed

+36
-2655
lines changed

.github/workflows/codeQL.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CodeQL Analysis
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66

77
jobs:
88
quality-analysis:
@@ -25,8 +25,8 @@ jobs:
2525
- name: Generate visual Studio solution
2626
run: cmake.exe --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -Btarget -G "Visual Studio 17 2022" -T host=x64 -A x64
2727
- name: Build
28-
run: cmake.exe --build target --config Debug
28+
run: cmake.exe --build target --config Debug --parallel
2929
- name: Perform CodeQL Analysis
3030
uses: github/codeql-action/analyze@v2
3131
with:
32-
category: "/language:cpp"
32+
category: "/language:cpp"

.github/workflows/coverage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Generate visual Studio solution
4141
run: cmake.exe --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE "-DCMAKE_C_COMPILER:FILEPATH=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\Llvm\x64\bin\clang-cl.exe" "-DCMAKE_CXX_COMPILER:FILEPATH=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\Llvm\x64\bin\clang-cl.exe" -Btarget -G "Visual Studio 17 2022" -T ClangCL,host=x64 -A x64 -DCOVERAGE:BOOL=ON
4242
- name: Build and test
43-
run: cmake.exe --build target --config Debug -j 16
43+
run: cmake.exe --build target --config Debug --parallel
4444
- name: Upload coverage report to Codecov
4545
run: |
4646
$ProgressPreference = 'SilentlyContinue'
@@ -62,7 +62,7 @@ jobs:
6262
- name: Generate visual Studio solution
6363
run: cmake.exe --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH="x86_64-w64-mingw32-gcc.exe" -DCMAKE_CXX_COMPILER:FILEPATH="x86_64-w64-mingw32-g++.exe" -Btarget -G "MinGW Makefiles" -DCOVERAGE:BOOL=ON
6464
- name: Build and test
65-
run: cmake.exe --build target --config Debug -j 16
65+
run: cmake.exe --build target --config Debug --parallel
6666
- name: Upload coverage report to Codecov
6767
run: |
6868
$ProgressPreference = 'SilentlyContinue'
@@ -86,7 +86,7 @@ jobs:
8686
- name: Generate Unix Makfiles
8787
run: cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang-14 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++-14 -Btarget -G "Unix Makefiles" -DCOVERAGE:BOOL=ON
8888
- name: Build and test
89-
run: cmake --build target -j 16
89+
run: cmake --build target --parallel
9090
- name: Upload coverage report to Codecov
9191
run: |
9292
curl -Os https://uploader.codecov.io/latest/linux/codecov
@@ -110,7 +110,7 @@ jobs:
110110
- name: Generate Unix Makfiles
111111
run: cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-12 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-12 -Btarget -G "Unix Makefiles" -DCOVERAGE:BOOL=ON
112112
- name: Build and test
113-
run: cmake --build target -j 16
113+
run: cmake --build target --parallel
114114
- name: Upload coverage report to Codecov
115115
run: |
116116
curl -Os https://uploader.codecov.io/latest/linux/codecov

.github/workflows/sanitizer_clang14.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
- name: Generate Unix Makfiles
2020
run: cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang-14 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++-14 -Btarget -G "Unix Makefiles" -DSANITIZER:BOOL=ON
2121
- name: Build
22-
run: cmake --build target --config Debug
22+
run: cmake --build target --config Debug --parallel
2323
- name: Test
24-
run: ctest --test-dir target -j10 -C Debug -T test --output-on-failure --verbose
24+
run: ctest --test-dir target -j10 -C Debug -T test --output-on-failure --verbose

.github/workflows/sanitizer_gcc12.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
- name: Generate Unix Makfiles
1818
run: cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-12 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-12 -Btarget -G "Unix Makefiles" -DSANITIZER:BOOL=ON
1919
- name: Build
20-
run: cmake --build target --config Debug
20+
run: cmake --build target --config Debug --parallel
2121
- name: Test
22-
run: ctest --test-dir target -j10 -C Debug -T test --output-on-failure --verbose
22+
run: ctest --test-dir target -j10 -C Debug -T test --output-on-failure --verbose

.github/workflows/sanitizer_msvc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
- name: Generate visual Studio solution
1818
run: cmake.exe --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -Btarget -G "Visual Studio 17 2022" -T host=x64 -A x64 -DSANITIZER:BOOL=ON
1919
- name: Build
20-
run: cmake.exe --build target --config Debug
20+
run: cmake.exe --build target --config Debug --parallel
2121
- name: Test
22-
run: ctest --test-dir target -j10 -C Debug -T test --output-on-failure --verbose
22+
run: ctest --test-dir target -j10 -C Debug -T test --output-on-failure --verbose

.github/workflows/ubuntu_clang14_x86-64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Generate Unix Makefiles
1818
run: cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang-14 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++-14 -Btarget -G "Unix Makefiles"
1919
- name: Build
20-
run: cmake --build target --config Release
20+
run: cmake --build target --config Release --parallel
2121
- name: Test
2222
run: ctest --test-dir target -j32 -C Release -T test --output-on-failure -VV
2323
- name: Test Report

.github/workflows/ubuntu_gcc12_x86-64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Generate Unix Makefiles
1818
run: cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc-12 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++-12 -Btarget -G "Unix Makefiles"
1919
- name: Build
20-
run: cmake --build target --config Release
20+
run: cmake --build target --config Release --parallel
2121
- name: Test
2222
run: ctest --test-dir target -j32 -C Release -T test --output-on-failure -VV
2323
- name: Test Report

.github/workflows/ubuntu_wasm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
source ./emsdk/emsdk_env.sh
2323
emcmake cmake --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Release -Btarget
2424
- name: Build
25-
run: cmake --build target -- -j 16
25+
run: cmake --build target --parallel
2626
- name: Test
2727
run: ctest --test-dir target -C Release -T test --output-on-failure -VV
2828
- name: Release

.github/workflows/windows_clang_cl_2022_x86-64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Generate visual Studio solution
1818
run: cmake.exe --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE "-DCMAKE_C_COMPILER:FILEPATH=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\Llvm\x64\bin\clang-cl.exe" "-DCMAKE_CXX_COMPILER:FILEPATH=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\Llvm\x64\bin\clang-cl.exe" -Btarget -G "Visual Studio 17 2022" -T ClangCL,host=x64 -A x64
1919
- name: Build
20-
run: cmake.exe --build target --config Release
20+
run: cmake.exe --build target --config Release --parallel
2121
- name: Test
2222
run: ctest --test-dir target -C Release -T test --output-on-failure -VV
2323
- name: Test Report

.github/workflows/windows_mingw_x86_64.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
uses: actions/checkout@v3
1313
- name: Install MinGW dependencies
1414
run: |
15-
C:/msys64/usr/bin/pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain --noconfirm
16-
$env:Path += ";C:\msys64\ucrt64\bin"
15+
C:/msys64/usr/bin/pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain --noconfirm
16+
$env:Path += ";C:\msys64\ucrt64\bin"
1717
- name: Generate
1818
run: cmake.exe --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_C_COMPILER:FILEPATH="x86_64-w64-mingw32-gcc.exe" -DCMAKE_CXX_COMPILER:FILEPATH="x86_64-w64-mingw32-g++.exe" -Btarget -G "MinGW Makefiles"
1919
- name: Build
20-
run: cmake --build target -- -j 16
20+
run: cmake --build target --parallel
2121
- name: Test
2222
run: ctest --test-dir target -C Release -T test --output-on-failure -VV
2323
- name: Test Report

0 commit comments

Comments
 (0)