Skip to content

Commit

Permalink
Use more cores on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed May 22, 2024
1 parent 34a6ac1 commit e058a0d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/bundle_with_dakota_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ jobs:
python_bin_include_lib=" using python : $python_version : $(python -c "from sysconfig import get_paths as gp; g=gp(); print(f\"$(which python) : {g['include']} : {g['stdlib']} ;\")")"
sed -i '' "s|.*using python.*|$python_bin_include_lib|" project-config.jam
cd /tmp/build/boost_${BOOST_VERSION_UNDERSCORES}
./b2 install -j4 -a cxxflags="-std=c++17" --prefix=${GITHUB_WORKSPACE}/${INSTALL_DIR}
ncpu=$(sysctl -n hw.ncpu)
./b2 install -j"$ncpu" -a cxxflags="-std=c++17" --prefix=${GITHUB_WORKSPACE}/${INSTALL_DIR}
- name: Build dakota
timeout-minutes: 30
Expand Down Expand Up @@ -183,7 +185,8 @@ jobs:
-DCMAKE_INSTALL_PREFIX="${GITHUB_WORKSPACE}/${INSTALL_DIR}" \
..
make -j4 install
ncpu=$(sysctl -n hw.ncpu)
make -j"$ncpu" install
- name: Package built boost and dakota
if: steps.cache-package.outputs.cache-hit != 'true'
Expand Down

0 comments on commit e058a0d

Please sign in to comment.