Skip to content

Commit b14351b

Browse files
committed
Github-actions: speed up builds in GitHub Actions by using make -j $(nproc)
Replaced all plain `make` calls with `make -j $(nproc)` to enable parallel builds based on the number of available CPU cores.
1 parent 751378d commit b14351b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
cd build
3232
cmake3 .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_INPUT_PCAP=ON -DENABLE_INPUT_DPDK=ON -DENABLE_INPUT_NFB=ON -DENABLE_PROCESS_EXPERIMENTAL=ON
3333
- name: make
34-
run: make
34+
run: make -j $(nproc)

.github/workflows/copr-upload.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
- name: Mark github workspace as safe
3030
run: git config --system --add safe.directory $PWD
3131
- name: make rpm
32-
run: make rpm
32+
run: make -j $(nproc) rpm
3333
- name: make rpm-msec
34-
run: make rpm-msec
34+
run: make -j $(nproc) rpm-msec
3535
- name: make rpm-nemea
36-
run: make rpm-nemea
36+
run: make -j $(nproc) rpm-nemea
3737
- name: Create copr config
3838
run: |
3939
mkdir ~/.config

.github/workflows/rpm-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ jobs:
3232
run: |
3333
cd build
3434
cmake3 .. -DCMAKE_BUILD_TYPE=Release -DENABLE_INPUT_PCAP=ON -DENABLE_INPUT_DPDK=ON -DENABLE_INPUT_NFB=ON -DENABLE_PROCESS_EXPERIMENTAL=ON
35-
make rpm
35+
make -j $(nproc) rpm
3636
- name: make rpm-msec
37-
run: make rpm-msec
37+
run: make -j $(nproc) rpm-msec
3838
- name: make rpm-nemea
3939
run: |
4040
cd build
4141
cmake3 .. -DCMAKE_BUILD_TYPE=Release -DENABLE_OUTPUT_UNIREC=ON -DENABLE_PROCESS_EXPERIMENTAL=ON
42-
make rpm-nemea
42+
make -j $(nproc) rpm-nemea
4343
- name: extract artifact name
4444
run: |
4545
OS=${{ inputs.os }}

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ jobs:
3232
cmake3 .. -DENABLE_NEMEA=ON -DENABLE_INPUT_PCAP=ON -DENABLE_OUTPUT_UNIREC=ON -DENABLE_PROCESS_EXPERIMENTAL=ON -DENABLE_TESTS=ON
3333
- name: make tests
3434
run: |
35-
make
35+
make -j $(nproc)
3636
make tests

0 commit comments

Comments
 (0)