Skip to content

Commit

Permalink
Add macOS-14 CI (#2856)
Browse files Browse the repository at this point in the history
* Give more CPU to jobs
* For the FENV_ACCESS see the note here: https://eel.is/c++draft/cfenv.syn
  • Loading branch information
alkino authored Jun 4, 2024
1 parent 8f16a43 commit 8e42c33
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/neuron-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ jobs:
cmake_option: -DNRN_ENABLE_CORENEURON=ON -DNRN_ENABLE_INTERVIEWS=OFF
-DNRN_ENABLE_RX3D=OFF -DNMODL_SANITIZERS=address
sanitizer: address
- os: macOS-14
config:
build_mode: cmake
# TODO: investigate rxd test timeouts in this build and re-enable them
cmake_option: -DNRN_ENABLE_CORENEURON=ON -DNRN_ENABLE_INTERVIEWS=OFF
-DNRN_ENABLE_RX3D=OFF -DNMODL_SANITIZERS=address
sanitizer: thread
fail-fast: false

steps:
Expand Down Expand Up @@ -113,14 +120,18 @@ jobs:
brew unlink mpich
brew install openmpi
brew install --cask xquartz
if [[ "${{matrix.os}}" == "macOS-14" ]]; then
brew install cmake
echo "$(brew --prefix)/opt/cmake/bin" >> $GITHUB_PATH
fi
echo "$(brew --prefix)/opt/flex/bin:$(brew --prefix)/opt/bison/bin" >> $GITHUB_PATH
# Core https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
if [[ "${{matrix.os}}" == "macOS-13" ]]; then
echo CMAKE_BUILD_PARALLEL_LEVEL=4 >> $GITHUB_ENV
echo CTEST_PARALLEL_LEVEL=4 >> $GITHUB_ENV
echo CMAKE_BUILD_PARALLEL_LEVEL=4 >> $GITHUB_ENV
echo CTEST_PARALLEL_LEVEL=4 >> $GITHUB_ENV
else
echo CMAKE_BUILD_PARALLEL_LEVEL=3 >> $GITHUB_ENV
echo CTEST_PARALLEL_LEVEL=3 >> $GITHUB_ENV
echo CMAKE_BUILD_PARALLEL_LEVEL=3 >> $GITHUB_ENV
echo CTEST_PARALLEL_LEVEL=3 >> $GITHUB_ENV
fi
echo CI_OS_NAME=osx >> $GITHUB_ENV
shell: bash
Expand Down
2 changes: 2 additions & 0 deletions src/ivoc/mymath.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma STDC FENV_ACCESS ON

#include <../../nrnconf.h>
#include <InterViews/geometry.h>
#include "mymath.h"
Expand Down
2 changes: 2 additions & 0 deletions src/oc/hoc.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma STDC FENV_ACCESS ON

#include <../../nrnconf.h>
#include "hoc.h"
#include "hocstr.h"
Expand Down
2 changes: 2 additions & 0 deletions src/oc/math.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma STDC FENV_ACCESS ON

#include <../../nrnconf.h>
/* a fake change */
/* /local/src/master/nrn/src/oc/math.cpp,v 1.6 1999/07/16 13:43:10 hines Exp */
Expand Down

0 comments on commit 8e42c33

Please sign in to comment.