Skip to content

Commit

Permalink
- cxon: enable parallel cmake builds (fix, cmake is special)
Browse files Browse the repository at this point in the history
  • Loading branch information
oknenavin committed Jul 5, 2024
1 parent 8e821cc commit 29a3a40
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ jobs:
cd test
#cmake --build .bld --target clean
cmake -S . -B .bld -D CMAKE_CXX_STANDARD=20 -D CMAKE_CXX_FLAGS="$CXXFLAGS" -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS"
cmake --build -j .bld --config Release --target cxon-json-node --parallel
cmake --build .bld --config Release --target cxon-json-node --parallel
COMPILER_VERSION=`grep -Erho 'CMAKE_CXX_COMPILER_VERSION ".*"' .bld | sed -E 's/.*"(.*)"/\1/' | head -n1`
cd .out
# S1
Expand All @@ -321,7 +321,7 @@ jobs:
cd test
cmake --build .bld --target clean
cmake -S . -B .bld -D CMAKE_CXX_STANDARD=20 -D CMAKE_CXX_FLAGS="$CXXFLAGS" -D CMAKE_EXE_LINKER_FLAGS="$LDFLAGS"
cmake --build -j .bld --config Release --target cxon-json-node --parallel
cmake --build .bld --config Release --target cxon-json-node --parallel
COMPILER_VERSION=`grep -Erho 'CMAKE_CXX_COMPILER_VERSION ".*"' .bld | sed -E 's/.*"(.*)"/\1/' | head -n1`
cd .out
# S1
Expand Down Expand Up @@ -395,7 +395,7 @@ jobs:
cd test
#cmake --build .bld --target clean
cmake -S . -B .bld -D CMAKE_BUILD_TYPE=Release -D CMAKE_CXX_STANDARD=20 -D CMAKE_CXX_FLAGS="$CXXFLAGS" -D CMAKE_EXE_LINKER_FLAGS="$LDFLAGS"
cmake --build -j .bld --target cxon-json-node --parallel
cmake --build .bld --target cxon-json-node --parallel
COMPILER_VERSION=`grep -Erho 'CMAKE_CXX_COMPILER_VERSION ".*"' .bld | sed -E 's/.*"(.*)"/\1/' | head -n1`
cd .out
# S1
Expand All @@ -420,7 +420,7 @@ jobs:
cd test
cmake --build .bld --target clean
cmake -S . -B .bld -D CMAKE_BUILD_TYPE=Release -D CMAKE_CXX_STANDARD=20 -D CMAKE_CXX_FLAGS="$CXXFLAGS" -D CMAKE_EXE_LINKER_FLAGS="$LDFLAGS"
cmake --build -j .bld --target cxon-json-node --parallel
cmake --build .bld --target cxon-json-node --parallel
COMPILER_VERSION=`grep -Erho 'CMAKE_CXX_COMPILER_VERSION ".*"' .bld | sed -E 's/.*"(.*)"/\1/' | head -n1`
cd .out
# S1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Build
run: |
cd test
cmake --build -j .bld --parallel
cmake --build .bld --parallel
- name: Check
run: |
cd test/.bld
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Build
run: |
cd test
cmake --build -j .bld --config Release --parallel
cmake --build .bld --config Release --parallel
- name: Check
run: |
cd test/.bld
Expand Down

0 comments on commit 29a3a40

Please sign in to comment.