Skip to content

Commit dce1f1d

Browse files
optimize: ci boost up
1 parent 47c9066 commit dce1f1d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
run: cmake -B build -DCMAKE_CXX_COMPILER=g++-13
2323

2424
- name: Build
25-
run: cmake --build build
25+
run: cmake --build build -j $(nproc)
2626

2727
- name: Unit tests
28-
run: ctest --test-dir build --output-on-failure --verbose
28+
run: ctest --test-dir build --output-on-failure --verbose -j $(nproc)
2929

3030
- name: Integration tests
3131
run: bash tests/integration/run_all.sh
@@ -56,7 +56,7 @@ jobs:
5656
-DCFBOX_OPTIMIZE_FOR_SIZE=ON
5757
5858
- name: Build
59-
run: cmake --build build-release
59+
run: cmake --build build-release -j $(nproc)
6060

6161
- name: Measure binary size
6262
run: |
@@ -109,7 +109,7 @@ jobs:
109109
-DCMAKE_TOOLCHAIN_FILE=cmake/toolchain/${{ matrix.toolchain }} \
110110
-DCMAKE_BUILD_TYPE=Release \
111111
-DCFBOX_OPTIMIZE_FOR_SIZE=ON
112-
cmake --build build-${{ matrix.target }}
112+
cmake --build build-${{ matrix.target }} -j $(nproc)
113113
114114
- name: Verify target binary
115115
run: |
@@ -125,7 +125,7 @@ jobs:
125125
-DCMAKE_BUILD_TYPE=Release \
126126
-DCFBOX_OPTIMIZE_FOR_SIZE=ON \
127127
-DCFBOX_STATIC_LINK=ON
128-
cmake --build build-${{ matrix.target }}-static
128+
cmake --build build-${{ matrix.target }}-static -j $(nproc)
129129
130130
- name: Verify static binary
131131
run: |

0 commit comments

Comments
 (0)