Skip to content

Commit

Permalink
Build and run simulations in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeannielynnmoulton committed Jul 18, 2024
1 parent 4f41780 commit 028372b
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/format-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,20 @@ jobs:
pipx ensurepath
pipx install clang-format
- name: Run clang-format h, cpp and hpp files
run: find . -iname '*.h' -o -iname '*.cpp' -o -iname '*.hpp' | xargs clang-format --dry-run -Werror
run: find . -iname '*.h' -o -iname '*.cpp' -o -iname '*.hpp' | xargs clang-format --dry-run -Werror
- name: Build
run: |
cd src
g++ \
*.cpp tinyxml/*.cpp \
-o transfil_N \
-g -I. -I./tinyxml \
$(gsl-config --libs) \
$(gsl-config --cflags) \
-lstdc++fs \
-Wall -O3 -std=c++11
- name: Run test
run: |
cd src
mkdir ../sample_results
./transfil\_N -s ../sample_inputs/scenario.xml -n ../sample_inputs/population_distribution.csv -p ../sample_inputs/random_parameters.txt -r 2 -t 1 -o ../sample_results

0 comments on commit 028372b

Please sign in to comment.