Add script to determine proc count in CI
This commit is contained in:
parent
8fe396d890
commit
7446c64333
2 changed files with 19 additions and 17 deletions
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
|
@ -119,23 +119,7 @@ jobs:
|
|||
run: |
|
||||
echo LD_LIBRARY_PATH=`pwd`/lib >> $GITHUB_ENV
|
||||
|
||||
case `uname` in
|
||||
Linux)
|
||||
wxPROC_COUNT=`nproc`
|
||||
;;
|
||||
|
||||
Darwin)
|
||||
wxPROC_COUNT=`sysctl -n hw.ncpu`
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "*** Unknown platform: `uname` ***"
|
||||
wxPROC_COUNT=0
|
||||
;;
|
||||
esac
|
||||
|
||||
((wxPROC_COUNT++))
|
||||
echo wxPROC_COUNT=$wxPROC_COUNT >> $GITHUB_ENV
|
||||
wxPROC_COUNT=`./build/tools/proc_count.sh`
|
||||
echo wxBUILD_ARGS=-j$wxPROC_COUNT >> $GITHUB_ENV
|
||||
|
||||
# Setting this variable suppresses "Error retrieving accessibility bus address"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue