Skip to content

Commit

Permalink
#691: clone and include pressio-ops in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cwschilly committed Oct 1, 2024
1 parent 142ea14 commit 1c55f7b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci-baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ jobs:
repository: Pressio/pressio-templates-usage-as-library
path: examples

- name: Checkout pressio-ops
uses: actions/checkout@v4
with:
repository: Pressio/pressio-ops
path: pressio-ops

- name: Preparing environment
run: |
wget https://gitlab.com/libeigen/eigen/-/archive/${{ env.eigen_version }}/eigen-${{ env.eigen_version }}.tar.gz \
Expand All @@ -88,6 +94,7 @@ jobs:
--std=c++17 \
-DPRESSIO_ENABLE_TPL_EIGEN \
-I/eigen/eigen-${{ env.eigen_version }} \
-I../pressio-ops/include \
-I../include \
-c main.cpp \
&& $CXX --std=c++17 -o pressio-example main.o \
Expand All @@ -99,6 +106,7 @@ jobs:
$CXX \
--std=c++17 \
-I/eigen/eigen-${{ env.eigen_version }} \
-I../pressio-ops/include \
-I../include \
-c main_with_defines.cpp \
&& $CXX --std=c++17 -o pressio-example main.o \
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/ci-trilinos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ jobs:
repository: Pressio/pressio-templates-usage-as-library
path: examples

- name: Checkout pressio-ops
uses: actions/checkout@v4
with:
repository: Pressio/pressio-ops
path: pressio-ops

- name: Preparing environment
run: |
sed -i -e '$alocalhost slots=4' /etc/openmpi/openmpi-default-hostfile \
Expand All @@ -75,6 +81,7 @@ jobs:
-DPRESSIO_ENABLE_TPL_TRILINOS \
-I/eigen/eigen-${{ env.eigen_version }} \
-I$trilinos_dir/include \
-I../pressio-ops/include \
-I../include \
-c main.cpp
Expand All @@ -86,6 +93,7 @@ jobs:
-DPRESSIO_ENABLE_TPL_TRILINOS \
-I/eigen/eigen-${{ env.eigen_version }} \
-I$trilinos_dir/include \
-I../pressio-ops/include \
-I../include \
-c main_with_defines.cpp
Expand Down

0 comments on commit 1c55f7b

Please sign in to comment.