Skip to content

Commit

Permalink
ci: always do a spack build for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rbberger committed Feb 23, 2024
1 parent be1f8b4 commit d25d5de
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,16 @@ before_script:
export SPINER_SPACK_SPEC="${SPINER_SPACK_SPEC}+hdf5+mpi+kokkos ^kokkos+wrapper+cuda cuda_arch=80";
fi
- |
if [[ "${CI_COMMIT_BRANCH}" == "${CI_DEFAULT_BRANCH}" ]];
then
section start "spack_build[collapsed=true]" "Building via Spack"
mkdir -p spack_build_env
spack env create -d spack_build_env
spack env activate -d spack_build_env
spack repo add spack-repo
spack repo list
spack config add upstreams:default:install_tree:${SPINER_SPACK_DIR}/opt/spack/
spack dev-build -j $(nproc) ${SPINER_SPACK_SPEC}
spack env deactivate
section end spack_build
fi
section start "spack_build[collapsed=true]" "Building via Spack"
mkdir -p spack_build_env
spack env create -d spack_build_env
spack env activate -d spack_build_env
spack repo add spack-repo
spack repo list
spack config add upstreams:default:install_tree:${SPINER_SPACK_DIR}/opt/spack/
spack dev-build -j $(nproc) ${SPINER_SPACK_SPEC}
spack env deactivate
section end spack_build
- section start "spack_env[collapsed=true]" "Creating Spack environment"
- mkdir -p spack_env
- spack env create -d spack_env
Expand Down

0 comments on commit d25d5de

Please sign in to comment.