-
Notifications
You must be signed in to change notification settings - Fork 9
#2454: Add spack-package build to bake file
#2460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
lifflander
merged 7 commits into
develop
from
2454-ci-fix-spack-build-azure-and-migrate-it-to-bake-github
Jul 28, 2025
+56
−16
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9148e12
#2454: Add new ARG (used for testing spack) and use it with bake
JacobDomagala 60c5e8a
#2454: Make two groups inside docker-bake.hcl file - one for pull req…
JacobDomagala 5e71a44
#2454: Update test_spack_package to use newer version of spack
JacobDomagala 5e2beac
#2454: Setup spack to use already installed openmpi
JacobDomagala df9e4d0
#2454: Sort docker ARGs related to vt
JacobDomagala 37af7aa
#2454: Test spack+vt on pull requests
JacobDomagala b800e85
#2454: Restore old configuration with target vt-build-all
JacobDomagala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,20 +1,20 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -exo pipefail | ||
|
|
||
| cur_path=$(pwd) | ||
| spack_path="$cur_path/spack" | ||
| vt_spack_package="$cur_path/spack-package" | ||
|
|
||
| git clone https://github.com/spack/spack.git | ||
| git clone https://github.com/DARMA-tasking/spack-package.git | ||
| git clone --branch v0.23.1 --depth=2 https://github.com/spack/spack.git | ||
| . spack/share/spack/setup-env.sh | ||
|
|
||
| cd "$spack_path" || exit 1 | ||
| git checkout v0.16.3 | ||
| cd "$cur_path" || exit 1 | ||
| git clone -b master https://github.com/DARMA-tasking/spack-package.git | ||
| python3 spack-package/ci/add_vt_branch.py "${GIT_BRANCH}" | ||
|
|
||
| declare -A variables_map | ||
| variables_map["lb_enabled"]="${VT_LB_ENABLED:-0}" | ||
| variables_map["trace_enabled"]="${VT_TRACE_ENABLED:-0}" | ||
| variables_map["trace_only"]="${VT_BUILD_TRACE_ONLY:-0}" | ||
| variables_map["trace_only"]="${VT_BUILD_TRACE_ONLY:-1}" | ||
| variables_map["doxygen_enabled"]="${VT_DOXYGEN_ENABLED:-0}" | ||
| variables_map["mimalloc_enabled"]="${VT_MIMALLOC_ENABLED:-0}" | ||
| variables_map["asan_enabled"]="${VT_ASAN_ENABLED:-0}" | ||
|
|
@@ -26,6 +26,7 @@ variables_map["diagnostics_enabled"]="${VT_DIAGNOSTICS_ENABLED:-0}" | |
| variables_map["diagnostics_runtime_enabled"]="${VT_DIAGNOSTICS_RUNTIME_ENABLED:-0}" | ||
| variables_map["unity_build_enabled"]="${VT_UNITY_BUILD_ENABLED:-0}" | ||
| variables_map["fcontext_enabled"]="${VT_FCONTEXT_ENABLED:-0}" | ||
| variables_map["kokkos"]="${VT_KOKKOS_ENABLED:-0}" | ||
|
|
||
| cmd_vars=() | ||
| for flag in "${!variables_map[@]}" | ||
|
|
@@ -40,16 +41,27 @@ do | |
| done | ||
|
|
||
| install_cmd=$(printf " %s" "${cmd_vars[@]}") | ||
| install_cmd="$spack_path/bin/spack install darma-vt@develop build_type=Release ${install_cmd:1}" | ||
| install_cmd="spack install darma-vt@${GIT_BRANCH} build_type=Release ${install_cmd:1} ^[email protected]" | ||
|
|
||
| mkdir -p ~/.spack | ||
| cat >> ~/.spack/packages.yaml <<'EOF' | ||
| packages: | ||
| openmpi: | ||
| externals: | ||
| - spec: [email protected] | ||
| prefix: /usr/local | ||
| EOF | ||
|
|
||
| spack clean --all | ||
| spack repo add "$vt_spack_package" | ||
| spack external find | ||
|
|
||
| "$spack_path"/bin/spack repo add "$vt_spack_package" | ||
| "$spack_path"/bin/spack external find | ||
| $install_cmd | ||
|
|
||
| git clone https://github.com/DARMA-tasking/vt-sample-project | ||
| mkdir -p vt-sample-project/build | ||
| cd vt-sample-project/build || exit 1 | ||
| vt_DIR=$("$spack_path"/bin/spack location --install-dir darma-vt) | ||
| vt_DIR=$(spack location --install-dir darma-vt) | ||
| export vt_DIR | ||
| cmake -G "${CMAKE_GENERATOR:-Ninja}" \ | ||
| -DCMAKE_BUILD_TYPE=Release \ | ||
|
|
||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.