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

DRAFT: try netcdf pip install #410

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 2 additions & 55 deletions .github/workflows/clang-compile-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,66 +2,12 @@ name: compile code and tests

on:
push:
branches: [ main, develop, issue103_CI ]
branches: [ melt/issue379_ncgenerator/test-ci ]
pull_request:
branches: [ main, develop, issue103_CI ]

jobs:

clang-on-mac:

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: clang
run: |
brew extract --version=13.0.1 clang-format homebrew/cask-versions
brew install clang-format@13.0.1
cd core/src
clang-format --dry-run -Werror *cpp include/*hpp
cd -
for component in physics
do
cd $component/src
clang-format --dry-run -Werror *cpp include/*hpp
cd -
done


build-and-tests-on-ubuntu:

runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
- name: installs
run: |
sudo apt-get update
sudo apt-get install netcdf-bin libnetcdf-c++4-dev libboost-all-dev libeigen3-dev cmake
sudo apt-get install python3-netcdf4
git clone -b v2.x https://github.com/catchorg/Catch2.git
cd Catch2
cmake -Bbuild -H. -DBUILD_TESTING=OFF
sudo cmake --build build/ --target install
cd ..
- name: make
run: |
cmake .
make
- name: run tests
run: |
cd core/test
for file in $(find test* -maxdepth 0 -type f); do ./$file; done
cd -
for component in physics
do
cd $component/test
for file in $(find test* -maxdepth 0 -type f); do ./$file; done
cd -
done


build-and-tests-on-mac:

runs-on: macos-latest
Expand All @@ -75,6 +21,7 @@ jobs:
brew install boost
brew install eigen
brew install cmake
pip3 install netCDF4
- name: make
run: |
cmake .
Expand Down
Loading