Skip to content

Commit debd15d

Browse files
committed
CI Contract: Build examples with external ADIOS
1 parent 3979b52 commit debd15d

File tree

8 files changed

+54
-2
lines changed

8 files changed

+54
-2
lines changed

.github/workflows/everything.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Note the use of multiple checkout actions in most jobs. This has been
88
# implemented to allow the use of CI scripts at a different ref or sha than
99
# the source code they're evaluating. For push events (when a pull_request is
10-
# merged) ther is no difference. However, for pull_request events this allows
10+
# merged) there is no difference. However, for pull_request events this allows
1111
# us test code at the head of a pull_request using the CI scripts from the
1212
# prospectively merged pull_request, which will include any CI updates that
1313
# may have made it to the target branch after the pull_request was started.
@@ -448,8 +448,9 @@ jobs:
448448
strategy:
449449
fail-fast: false
450450
matrix:
451-
code: [lammps, tau]
451+
code: [examples, lammps, tau]
452452
include:
453+
- code: examples
453454
- code: lammps
454455
repo: pnorbert/lammps
455456
ref: fix-deprecated-adios-init

.shellcheck_exclude_paths

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ scripts/developer/setup.sh
1515
scripts/docker/setup-user.sh
1616
scripts/runconf/runconf.sh
1717
scripts/runconf/runconf_olcf.sh
18+
testing/contract/examples/build.sh
19+
testing/contract/examples/config.sh
20+
testing/contract/examples/depends.sh
21+
testing/contract/examples/install.sh
22+
testing/contract/examples/setup.sh
23+
testing/contract/examples/test.sh
1824
testing/contract/lammps/build.sh
1925
testing/contract/lammps/config.sh
2026
testing/contract/lammps/install.sh

testing/contract/examples/build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -x
4+
set -e
5+
6+
source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh
7+
8+
cmake --build ${build_dir} -j8
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -x
4+
set -e
5+
6+
source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh
7+
8+
mkdir -p ${build_dir}
9+
cd ${build_dir}
10+
11+
cmake -DCMAKE_INSTALL_PREFIX=${install_dir} ${source_dir}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
exit 0
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -x
4+
set -e
5+
6+
source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh
7+
8+
cmake --install ${build_dir}

testing/contract/examples/setup.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source_dir="/opt/adios2/source/examples"
2+
build_dir=$(readlink -f "${PWD}")/build
3+
install_dir=$(readlink -f "${PWD}")/install
4+
5+
echo "source_dir = \"${source_dir}\""
6+
echo "build_dir = \"${build_dir}\""
7+
echo "install_dir = \"${install_dir}\""

testing/contract/examples/test.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
set -x
4+
set -e
5+
6+
source $(dirname $(readlink -f ${BASH_SOURCE}))/setup.sh
7+
8+
${install_dir}/bin/adios2_hello_helloWorld

0 commit comments

Comments
 (0)