Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build NEST with Python, OpenMP, MPI, Boost and GSL for macOS on CI #2762

Merged
merged 13 commits into from
Jun 2, 2023
23 changes: 7 additions & 16 deletions .github/workflows/nestbuildmatrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -621,19 +621,18 @@ jobs:
matrix:
os: [macos-latest]
cpp_compiler: ["clang"]
NEST_BUILD_TYPE: ["FULL_MACOS"]

# available use flags (all default to "OFF"):
# openmp, mpi, python, gsl, ltdl, boost, sionlib, libneurosim, optimize, warning, userdoc, music
use:
- "openmp, mpi, python, gsl, ltdl, boost, optimize, warning"
heplesser marked this conversation as resolved.
Show resolved Hide resolved

steps:
- name: "Checkout repository content"
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: "Find changed files"
run: |
echo "CHANGED_FILES<<EOF" >>$GITHUB_ENV
echo "$(git diff --name-only ${{ github.event.before }}..${{ github.event.after }})" >>$GITHUB_ENV
echo 'EOF' >>$GITHUB_ENV

- name: "Set up Python 3.x"
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -669,12 +668,6 @@ jobs:
run: |
mkdir -p "$NEST_VPATH/reports" "$NEST_RESULT"

if [ "$xNEST_BUILD_COMPILER" = "CLANG" ]; then
export CC=clang-11
export CXX=clang++-11
fi
export CXX_FLAGS="-pedantic -Wextra -Wno-unknown-pragmas -D_GLIBCXX_ASSERTIONS"
heplesser marked this conversation as resolved.
Show resolved Hide resolved

cd "$NEST_VPATH"
cmake \
-DCMAKE_INSTALL_PREFIX="$NEST_RESULT" \
Expand All @@ -683,6 +676,7 @@ jobs:
-Dwith-warning=${{ contains(matrix.use, 'warning') && 'ON' || 'OFF' }} \
-Dwith-boost=${{ contains(matrix.use, 'boost') && 'ON' || 'OFF' }} \
-Dwith-openmp=${{ contains(matrix.use, 'openmp') && 'ON' || 'OFF' }} \
${{ contains(matrix.use, 'openmp') && '-DOpenMP_ROOT=$(brew --prefix libomp)' }} \
-Dwith-mpi=${{ contains(matrix.use, 'mpi') && 'ON' || 'OFF' }} \
terhorstd marked this conversation as resolved.
Show resolved Hide resolved
-Dwith-python=${{ contains(matrix.use, 'python') && 'ON' || 'OFF' }} \
-Dwith-gsl=${{ contains(matrix.use, 'gsl') && 'ON' || 'OFF' }} \
Expand All @@ -703,9 +697,6 @@ jobs:
run: |
cd "$NEST_VPATH"
make install
env:
xNEST_BUILD_TYPE: ${{ matrix.NEST_BUILD_TYPE }}
CHANGED_FILES: ${{ env.CHANGED_FILES }}

- name: "Initialize Matplotlibrc"
run: |
Expand Down