-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI Contract: Build examples with external ADIOS
- Loading branch information
1 parent
05c3200
commit bdbde30
Showing
7 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
# shellcheck disable=SC1091 | ||
source "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"/setup.sh | ||
|
||
# Fail if is not set | ||
${build_dir:?} | ||
|
||
cmake --build "${build_dir}" -j8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
# shellcheck disable=SC1091 | ||
source "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"/setup.sh | ||
|
||
# Fail if is not set | ||
${source_dir:?} | ||
${build_dir:?} | ||
${install_dir:?} | ||
|
||
mkdir -p "${build_dir}" | ||
cd "${build_dir}" | ||
|
||
cmake -DCMAKE_INSTALL_PREFIX="${install_dir}" "${source_dir}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
# shellcheck disable=SC1091 | ||
source "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"/setup.sh | ||
|
||
# Fail if is not set | ||
${build_dir:?} | ||
|
||
cmake --install "${build_dir}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
source_dir="/opt/adios2/source/examples" | ||
build_dir=$(readlink -f "${PWD}")/build | ||
install_dir=$(readlink -f "${PWD}")/install | ||
|
||
export source_dir | ||
export build_dir | ||
export install_dir | ||
|
||
echo "source_dir = \"${source_dir}\"" | ||
echo "build_dir = \"${build_dir}\"" | ||
echo "install_dir = \"${install_dir}\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
# shellcheck disable=SC1091 | ||
source "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"/setup.sh | ||
|
||
# Fail if is not set | ||
${install_dir:?} | ||
|
||
"${install_dir}"/bin/adios2_hello_helloWorld |