Skip to content

Commit

Permalink
Build workflow: use all available CPUs.
Browse files Browse the repository at this point in the history
  • Loading branch information
octo committed Nov 24, 2023
1 parent 2246583 commit 88d8495
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
- fedora38_x86_64
config_flags: ['']
env:
MAKEFLAGS: "-j2 -sk"
CONFIGURE_FLAGS: ${{ matrix.config_flags }}
# this env var picked up by valgrind during make check phase
VALGRIND_OPTS: "--errors-for-leak-kinds=definite"
Expand All @@ -51,9 +50,9 @@ jobs:
- name: Run configure script
run: ./configure $CONFIGURE_FLAGS
- name: Build collectd
run: make $MAKEFLAGS
run: make -j$(nproc) -sk
- name: Run make check
run: make $MAKEFLAGS check
run: make -j$(nproc) -sk check
continue-on-error: true
- name: Dump test logs
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -81,7 +80,6 @@ jobs:
cppflags: "-fPIE -Wno-deprecated-declarations"
config_flags: "--disable-dpdkstat --disable-dpdkevents --disable-virt --disable-xmms"
env:
MAKEFLAGS: "-j2 -sk"
CFLAGS: ${{ matrix.cflags }}
CPPFLAGS: ${{ matrix.cppflags }}
CONFIGURE_FLAGS: ${{ matrix.config_flags }}
Expand All @@ -96,9 +94,9 @@ jobs:
- name: Run configure script
run: ./configure $CONFIGURE_FLAGS
- name: Build collectd
run: make $MAKEFLAGS
run: make -j$(nproc) -sk
- name: Run make check
run: make $MAKEFLAGS check
run: make -j$(nproc) -sk check
continue-on-error: true
- name: Dump test logs
uses: actions/upload-artifact@v3
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/distcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
runs-on: ubuntu-latest
container: collectd/ci:bullseye_amd64
env:
MAKEFLAGS: "-j$(nproc) -sk"
# this env var picked up by valgrind during make check phase
VALGRIND_OPTS: "--errors-for-leak-kinds=definite"
steps:
Expand Down

0 comments on commit 88d8495

Please sign in to comment.