Skip to content
Snippets Groups Projects
Commit 63cdae8e authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Adding compilers to build cache

parent 10e54d2f
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ spack:install_compilers:
extends:
- .parallel_job
script:
- COMPILER_LIST_SPECS=$(jq -r '.stack.compilers | map("\(.spec)@\(.version)")[]' config.json)
- COMPILER_LIST_SPECS=$(jq -r '.stack | .core_compiler as $core | .compilers | map("\(.spec)@\(.version) %\($core)")[]' config.json)
- /spack/spack/bin/spack install
--log-file spack-install.xml
--log-format junit
......@@ -106,6 +106,7 @@ spack:install_compilers:
--use-cache
${COMPILER_LIST_SPECS}
- /spack/spack/bin/spack buildcache create --update-index --signed scitas-buildcache ${COMPILER_LIST_SPECS}
- |
echo 'definitions: [ compilers: [' ${COMPILER_LIST_SPECS} ']]' > compiler_definitions.yaml
......
......@@ -13,6 +13,7 @@
}
},
"stack": {
"core_compiler": "gcc@11.4.1 arch=linux-rhel9-x86_64_v2",
"compilers": {
"gcc": { "spec": "gcc", "version": "12.2.0" },
"intel": { "spec": "intel-oneapi-compilers", "version": "2023.2.1" }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment