Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2024-01-15 14:22:45 +0100
committerMartin Hořeňovský2024-01-15 14:22:45 +0100
commit658acee86e309ea32937cd0a7c7b8df6ec78412f (patch)
tree2e1d443ef2ffe9fbe5d98577565500e5875e4a47
parent05e10dfccc28c7f973727c54f850237d07d5e10f (diff)
downloadcatch3-658acee86e309ea32937cd0a7c7b8df6ec78412f.tar.gz
Run tests on all cores in GHA jobs
-rw-r--r--.github/workflows/linux-meson-builds.yml1
-rw-r--r--.github/workflows/linux-other-builds.yml3
-rw-r--r--.github/workflows/linux-simple-builds.yml3
3 files changed, 2 insertions, 5 deletions
diff --git a/.github/workflows/linux-meson-builds.yml b/.github/workflows/linux-meson-builds.yml
index 4ffa0243..4a6cfd5b 100644
--- a/.github/workflows/linux-meson-builds.yml
+++ b/.github/workflows/linux-meson-builds.yml
@@ -40,6 +40,5 @@ jobs:
- name: Run tests
working-directory: ${{runner.workspace}}/meson-build
- # Hardcode 2 cores we know are there
run: |
meson test --verbose
diff --git a/.github/workflows/linux-other-builds.yml b/.github/workflows/linux-other-builds.yml
index 4a7f5ecc..9afd231a 100644
--- a/.github/workflows/linux-other-builds.yml
+++ b/.github/workflows/linux-other-builds.yml
@@ -102,5 +102,4 @@ jobs:
env:
CTEST_OUTPUT_ON_FAILURE: 1
working-directory: ${{runner.workspace}}/build
- # Hardcode 2 cores we know are there
- run: ctest -C ${{matrix.build_type}} -j 2 ${{matrix.other_ctest_args}}
+ run: ctest -C ${{matrix.build_type}} -j `nproc` ${{matrix.other_ctest_args}}
diff --git a/.github/workflows/linux-simple-builds.yml b/.github/workflows/linux-simple-builds.yml
index a32eb597..4cca3161 100644
--- a/.github/workflows/linux-simple-builds.yml
+++ b/.github/workflows/linux-simple-builds.yml
@@ -120,5 +120,4 @@ jobs:
env:
CTEST_OUTPUT_ON_FAILURE: 1
working-directory: ${{runner.workspace}}/build
- # Hardcode 2 cores we know are there
- run: ctest -C ${{matrix.build_type}} -j 2
+ run: ctest -C ${{matrix.build_type}} -j `nproc`