Skip to content

Commit

Permalink
Reduce parallelism in CI builds
Browse files Browse the repository at this point in the history
I'm hoping this will prevent the
```
g++: fatal error: Killed signal terminated program cc1plus
```

errors I've been seeing.
  • Loading branch information
bmerry committed Aug 4, 2022
1 parent 7052158 commit 78c1966
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .ci/cxx-tests.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/sh
set -e

if ! make -C build -j check; then
# -j4 rather than -j to avoid getting killed on Github Actions
if ! make -C build -j4 check; then
cat build/src/test-suite.log
exit 1
fi
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Run configure
run: ./.ci/configure.sh ${{ matrix.extras }}
- name: Build
run: make -C build -j
run: make -C build -j4
- name: Run tests
run: ./.ci/cxx-tests.sh
- name: Show ccache stats
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
- name: Run configure
run: ./.ci/configure.sh yes --disable-optimized --enable-coverage
- name: Build
run: make -C build -j
run: make -C build -j4
- name: Run C++ tests
run: ./.ci/cxx-tests.sh
- name: Collect coverage
Expand Down

0 comments on commit 78c1966

Please sign in to comment.