Merge osb fork #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI | |
on: | |
push: | |
branches: [ master, development, test* ] | |
pull_request: | |
branches: [ master, development, test* ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.runs-on }} | |
strategy: | |
fail-fast: false | |
matrix: | |
runs-on: [ubuntu-latest, ubuntu-22.04, macos-latest, macos-14 ] | |
python-version: [ "3.10", "3.12" ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Build Sundials | |
run: | | |
cd WormSim | |
# Set idaInstallDir: | |
idaInstallDir=`pwd`/Sundials | |
# Go to sundials-2.3.0 directory, configure & make: | |
cd sundials-2.3.0 | |
./configure CC=g++ --prefix=$idaInstallDir --disable-mpi --disable-fcmix | |
make | |
make install | |
- name: Install Python dependencies | |
run: | | |
pip install numpy matplotlib jsonschema | |
- name: Build and run model | |
run: | | |
cd WormSim/Model | |
./test_all.sh | |
ls -alth | |
- name: Print some output of the executed model | |
run: | | |
cd WormSim/Model | |
ls -alt | |
head -n 3 simdata.csv |