Skip to content

Commit

Permalink
up9
Browse files Browse the repository at this point in the history
  • Loading branch information
vvolkl committed Mar 6, 2021
1 parent b0c18ec commit 6d0c3f5
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/concretize-lxplus-pr-target.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@ jobs:
docker run -it --name CI_container -e GITHUB_ENV=${GITHUB_ENV} -v ${GITHUB_WORKSPACE}:/Package -v /cvmfs:/cvmfs:shared -d clicdp/cc7-lcg /bin/bash
- name: Setup container
run: |
docker exec CI_container /bin/bash -c ' ln -s /usr/lib64/liblzma.so.5.2.2 /usr/lib64/liblzma.so;\
yum -y install gcc;'
docker exec CI_container /bin/bash -c ' ln -s /usr/lib64/liblzma.so.5.2.2 /usr/lib64/liblzma.so;'
- name: Setup Spack
run: |
docker exec CI_container /bin/bash -c 'cd ./Package;\
source scripts/ci_setup_spack.sh;'
source scripts/ci_setup_spack2.sh;'
- name: Concretize
run: |
docker exec CI_container /bin/bash -c 'cd ./Package;\
Expand Down
14 changes: 14 additions & 0 deletions config/compilers_centos7_cvmfs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
compilers:
- compiler:
paths:
cc: /cvmfs/sw.hsf.org/spackages/linux-centos7-haswell/gcc-4.8.5/gcc-8.3.0-avsmzt7bekq7ispf6zlarx6vwdretbae/bin/gcc
cxx: /cvmfs/sw.hsf.org/spackages/linux-centos7-haswell/gcc-4.8.5/gcc-8.3.0-avsmzt7bekq7ispf6zlarx6vwdretbae/bin/g++
f77: /cvmfs/sw.hsf.org/spackages/linux-centos7-haswell/gcc-4.8.5/gcc-8.3.0-avsmzt7bekq7ispf6zlarx6vwdretbae/bin/gfortran
fc: /cvmfs/sw.hsf.org/spackages/linux-centos7-haswell/gcc-4.8.5/gcc-8.3.0-avsmzt7bekq7ispf6zlarx6vwdretbae/bin/gfortran
operating_system: centos7
target: x86_64
modules: []
environment: {}
extra_rpaths: []
flags: {}
spec: [email protected]
2 changes: 1 addition & 1 deletion scripts/ci_setup_spack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
echo ' - $SPACK_ROOT/var/spack/repos/key4hep-spack' >> spack/etc/spack/repos.yaml
tar -czf key4hep-spack.tar.gz spack
cp ${PWD}/spack/var/spack/repos/key4hep-spack/config/cvmfs_build/upstreams.yaml spack/etc/spack/
# compiler setup
compiler setup
spack load gcc
spack compiler find --scope site
tar -czf key4hep-spack_centos7-cvmfs.tar.gz spack
20 changes: 20 additions & 0 deletions scripts/ci_setup_spack2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# set up spack inside the k4-spack repo
if [ -n "$SPACK_VERSION" ]; then git clone https://github.com/key4hep/spack ; cd spack; git checkout $SPACK_VERSION; cd ..; else git clone --depth 1 https://github.com/key4hep/spack; fi
source spack/share/spack/setup-env.sh
# get the right config files to the right places
cp config/packages.yaml spack/etc/spack/
mkdir spack/var/spack/repos/key4hep-spack
cp -r * spack/var/spack/repos/key4hep-spack || true
# clean up git directories for zip
rm -rf spack/var/spack/repos/key4hep-spack/spack || true
rm -rf spack/.git
# register k4 package recipes with spack
echo "repos:" > spack/etc/spack/repos.yaml
echo ' - $SPACK_ROOT/var/spack/repos/key4hep-spack' >> spack/etc/spack/repos.yaml
tar -czf key4hep-spack.tar.gz spack
cp ${PWD}/spack/var/spack/repos/key4hep-spack/config/cvmfs_build/upstreams.yaml spack/etc/spack/
cp config/compilers_centos7_cvmfs.yaml spack/etc/spack/compilers.yaml
# compiler setup
# spack load gcc
# spack compiler find --scope site
# tar -czf key4hep-spack_centos7-cvmfs.tar.gz spack

0 comments on commit 6d0c3f5

Please sign in to comment.