summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorVadim Zeitlin <vz-swig@zeitlins.org>2021-10-01 04:28:11 +0200
committerVadim Zeitlin <vz-swig@zeitlins.org>2021-10-01 04:28:11 +0200
commit3b7e46dd19850c83833c23db5ae231eef4d23b39 (patch)
treedbf4a421e30ead0a2eafc0add958f97d4d6d26b3 /.github/workflows/ci.yml
parentf038fcb44d0c1c9ed20f038544ed66320573b99c (diff)
downloadswig-3b7e46dd19850c83833c23db5ae231eef4d23b39.tar.gz
Try using one less make job to see its effect on total time
Check if using -j2, rather than -j3, may help with speeding up Octave unit tests run which takes ~25 minutes currently.
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index beab2b08a..076c322a7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -242,11 +242,12 @@ jobs:
;;
*)
- cpu_count=0
+ cpu_count=1
;;
esac
- ((cpu_count++))
- echo SWIGJOBS=-j$cpu_count >> $GITHUB_ENV
+ if [[ $cpu_count != 1 ]]; then
+ echo SWIGJOBS=-j$cpu_count >> $GITHUB_ENV
+ fi
- name: Build
working-directory: build/build