Skip to content

Commit

Permalink
CI Contract: Build examples with external ADIOS
Browse files Browse the repository at this point in the history
  • Loading branch information
spyridon97 committed Nov 17, 2023
1 parent ced424b commit 3e51b18
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/everything.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Note the use of multiple checkout actions in most jobs. This has been
# implemented to allow the use of CI scripts at a different ref or sha than
# the source code they're evaluating. For push events (when a pull_request is
# merged) ther is no difference. However, for pull_request events this allows
# merged) there is no difference. However, for pull_request events this allows
# us test code at the head of a pull_request using the CI scripts from the
# prospectively merged pull_request, which will include any CI updates that
# may have made it to the target branch after the pull_request was started.
Expand Down Expand Up @@ -451,8 +451,9 @@ jobs:
strategy:
fail-fast: false
matrix:
code: [lammps, tau]
code: [examples, lammps, tau]
include:
- code: examples
- code: lammps
repo: pnorbert/lammps
ref: fix-deprecated-adios-init
Expand Down
8 changes: 8 additions & 0 deletions testing/contract/examples/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

set -x
set -e

source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh

cmake --build ${build_dir} -j8
11 changes: 11 additions & 0 deletions testing/contract/examples/config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -x
set -e

source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh

mkdir -p ${build_dir}
cd ${build_dir}

cmake -DCMAKE_INSTALL_PREFIX=${install_dir} ${source_dir}
3 changes: 3 additions & 0 deletions testing/contract/examples/depends.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

exit 0
8 changes: 8 additions & 0 deletions testing/contract/examples/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

set -x
set -e

source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh

cmake --install ${build_dir}
7 changes: 7 additions & 0 deletions testing/contract/examples/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source_dir="/opt/adios2/source/examples"
build_dir=$(readlink -f "${PWD}")/build
install_dir=$(readlink -f "${PWD}")/install

echo "source_dir = \"${source_dir}\""
echo "build_dir = \"${build_dir}\""
echo "install_dir = \"${install_dir}\""
8 changes: 8 additions & 0 deletions testing/contract/examples/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

set -x
set -e

source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh

${install_dir}/bin/adios2_hello_helloWorld

0 comments on commit 3e51b18

Please sign in to comment.