summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
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