Skip to content

Commit

Permalink
maxproc
Browse files Browse the repository at this point in the history
  • Loading branch information
ahgamut committed Oct 17, 2023
1 parent 2b3c9b4 commit 96686d0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/scripts/cosmo
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ echo "Initial Setup"
export BASELOC=$PWD
export COSMO=$BASELOC/cosmopolitan

if [ -z ${GITHUB_ACTIONS+x} ]; then
# we are not on GA
if [[ `nproc` -gt 2 ]]; then
numproc=$((`nproc` - 2))
else
numproc=1
fi
else
# we are on GA
numproc=2
fi

MAXPROC="${MAXPROC:-$numproc}"

echo "Compiling Cosmopolitan Libc"
cd $BASELOC

Expand Down

0 comments on commit 96686d0

Please sign in to comment.