Skip to content

Commit

Permalink
Add yaml-cpp to CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
faisal-bhuiyan committed Aug 8, 2024
1 parent 13d9894 commit ee450a5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/clang-tidy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
spack external find
spack install googletest
spack install trilinos@master~mpi~epetra+basker
- name: Install yaml-cpp
run:
source spack/share/spack/setup-env.sh
spack install yaml-cpp
- name: Clone
uses: actions/checkout@v4
with:
Expand All @@ -35,6 +39,7 @@ jobs:
source spack/share/spack/setup-env.sh
spack load trilinos
spack load googletest
spack load yaml-cpp
cd openturbine
mkdir build-clangtidy
cd build-clangtidy
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/correctness-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
spack external find
spack install googletest
spack install trilinos@master~mpi~epetra+basker
- name: Install yaml-cpp
run:
source spack/share/spack/setup-env.sh
spack install yaml-cpp
- name: Clone
uses: actions/checkout@v4
with:
Expand All @@ -40,14 +44,15 @@ jobs:
source spack/share/spack/setup-env.sh
spack load trilinos
spack load googletest
spack load yaml-cpp
cd openturbine
mkdir build
cd build
cmake .. \
-DOpenTurbine_ENABLE_SANITIZER_ADDRESS=ON \
-DOpenTurbine_ENABLE_SANITIZER_LEAK=ON \
-DOpenTurbine_ENABLE_SANITIZER_UNDEFINED=ON \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
cmake --build .
cp src/*.dll tests/unit_tests/
ctest --output-on-failure
7 changes: 6 additions & 1 deletion .github/workflows/correctness-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:
spack external find
spack install googletest
spack install trilinos@master~mpi~epetra+basker
- name: Install yaml-cpp
run:
source spack/share/spack/setup-env.sh
spack install yaml-cpp
- name: Clone
uses: actions/checkout@v4
with:
Expand All @@ -38,13 +42,14 @@ jobs:
source spack/share/spack/setup-env.sh
spack load trilinos
spack load googletest
spack load yaml-cpp
cd openturbine
mkdir build
cd build
cmake .. \
-DOpenTurbine_ENABLE_SANITIZER_ADDRESS=ON \
-DOpenTurbine_ENABLE_SANITIZER_UNDEFINED=ON \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
cmake --build .
cp src/*.dll tests/unit_tests/
ctest --output-on-failure
4 changes: 4 additions & 0 deletions .github/workflows/cppcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
spack external find
spack install googletest
spack install trilinos@master~mpi~epetra+basker
- name: Install yaml-cpp
run:
source spack/share/spack/setup-env.sh
spack install yaml-cpp
- name: Clone
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit ee450a5

Please sign in to comment.