Skip to content

Commit

Permalink
update mac ci build (#420)
Browse files Browse the repository at this point in the history
Currently the mac ci build is failing. This is an attempt to fix it.
  • Loading branch information
TomMelt authored Oct 2, 2023
2 parents a68ffd8 + 6847c94 commit 2c3a4f5
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/clang-compile-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ jobs:
run: |
sudo apt update -y
sudo apt install netcdf-bin libnetcdff-dev libnetcdf-c++4-dev libboost-all-dev libeigen3-dev cmake libhdf5-dev
# sudo apt install subversion
# sudo apt install liburi-perl
svn checkout http://forge.ipsl.jussieu.fr/ioserver/svn/XIOS/trunk xios
cp .github/xios_arch/ubuntu.arch xios/arch/arch-GCC_LINUX.path
Expand Down Expand Up @@ -77,6 +75,29 @@ jobs:
brew install boost
brew install eigen
brew install cmake
brew install open-mpi
brew install hdf5-mpi
svn checkout http://forge.ipsl.jussieu.fr/ioserver/svn/XIOS/trunk xios
cp .github/xios_arch/ubuntu.arch xios/arch/arch-GCC_LINUX.path
cp .github/xios_arch/ubuntu.env xios/arch/arch-GCC_LINUX.env
(cd xios && ./make_xios --arch GCC_LINUX --netcdf_lib netcdf4_seq)
- name: make
run: |
cmake -Bbuild -Dxios_DIR="$(pwd)/xios" -DCMAKE_CXX_COMPILER="$(which mpic++)"
cd build
make
- name: run tests
run: |
export XIOS_IODEF_PATH="$(pwd)/../run/iodef.xml"
for component in core physics
do
cd $component/test
for file in $(find test* -maxdepth 0 -type f); do ./$file; done
cd -
done
- name: make
run: |
cmake .
Expand Down

0 comments on commit 2c3a4f5

Please sign in to comment.