Skip to content

Commit

Permalink
Merge pull request #2762 from heplesser/reactivate_full_macos_build
Browse files Browse the repository at this point in the history
Build NEST with Python, OpenMP, MPI, Boost and GSL for macOS on CI
  • Loading branch information
heplesser authored Jun 2, 2023
2 parents 3086b0f + 4af8fbf commit 256e435
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/nestbuildmatrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -623,19 +623,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, hdf5, sionlib, libneurosim, optimize, warning, userdoc, music
use:
- "openmp, mpi, python, gsl, ltdl, boost, hdf5, optimize, warning"

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 @@ -671,12 +670,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"
cd "$NEST_VPATH"
cmake \
-DCMAKE_INSTALL_PREFIX="$NEST_RESULT" \
Expand All @@ -685,6 +678,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' }} \
-Dwith-python=${{ contains(matrix.use, 'python') && 'ON' || 'OFF' }} \
-Dwith-gsl=${{ contains(matrix.use, 'gsl') && 'ON' || 'OFF' }} \
Expand All @@ -705,9 +699,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

0 comments on commit 256e435

Please sign in to comment.