Skip to content

Commit d809936

Browse files
committed
WIP: ci: run more programs in parallel mode
This should speed up the execution of each job in question.
1 parent 233b3b5 commit d809936

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/build-extra.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
--enable-apparmor --enable-selinux
6969
|| (cat config.log; exit 1)
7070
- name: make
71-
run: make
71+
run: make -j "$(nproc)"
7272
- name: make install
7373
run: sudo make install
7474
- name: make installcheck
@@ -103,7 +103,7 @@ jobs:
103103
--enable-apparmor --enable-selinux
104104
|| (cat config.log; exit 1)
105105
- name: make
106-
run: make
106+
run: make -j "$(nproc)"
107107
- name: make install
108108
run: sudo make install
109109
- name: make installcheck

.github/workflows/check-c.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
--enable-apparmor --enable-selinux
7373
|| (cat config.log; exit 1)
7474
- name: scan-build
75-
run: make scan-build
75+
run: make -j "$(nproc)" scan-build
7676

7777
cppcheck:
7878
runs-on: ubuntu-22.04
@@ -96,7 +96,7 @@ jobs:
9696
run: sudo apt-get install -qy cppcheck
9797
- name: configure
9898
run: >
99-
./configure CPPCHECK='cppcheck -q'
99+
./configure CPPCHECK="cppcheck -q -j'$(nproc)'"
100100
|| (cat config.log; exit 1)
101101
- run: cppcheck --version
102102
- name: cppcheck
@@ -127,7 +127,7 @@ jobs:
127127
run: sudo apt-get install -qy cppcheck
128128
- name: configure
129129
run: >
130-
./configure CPPCHECK='cppcheck -q'
130+
./configure CPPCHECK="cppcheck -q -j'$(nproc)'"
131131
|| (cat config.log; exit 1)
132132
- run: cppcheck --version
133133
- name: cppcheck-old

0 commit comments

Comments
 (0)