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 3021bc9
Show file tree
Hide file tree
Showing 7 changed files with 57 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
10 changes: 10 additions & 0 deletions testing/contract/examples/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -x
set -e

# shellcheck disable=SC1091
source "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"/setup.sh

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

set -x
set -e

# shellcheck disable=SC1091
source "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"/setup.sh

# shellcheck disable=SC2154
mkdir -p "${build_dir}"
cd "${build_dir}"

# shellcheck disable=SC2154
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
10 changes: 10 additions & 0 deletions testing/contract/examples/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -x
set -e

# shellcheck disable=SC1091
source "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"/setup.sh

# shellcheck disable=SC2154
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}\""
10 changes: 10 additions & 0 deletions testing/contract/examples/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -x
set -e

# shellcheck disable=SC1091
source "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"/setup.sh

# shellcheck disable=SC2154
"${install_dir}"/bin/adios2_hello_helloWorld

0 comments on commit 3021bc9

Please sign in to comment.