@@ -21,39 +21,29 @@ jobs:
2121 with :
2222 ref : develop
2323
24- - name : Install MPI
24+ - name : Set install root for Spack
2525 run : |
26- sudo apt install -y libmpich-dev
27-
28- - name : Find external packages
29- run : |
30- spack -e . external find --not-buildable cmake
31- spack -e . external find --not-buildable perl
32- spack -e . external find --not-buildable mpich
26+ spack -e tests config add config:install_tree:root:/opt/spack
27+ spack -e tests config add view:/opt/view
3328
3429 - name : Add mochi-spack-packages
3530 run : |
36- git clone https://github.com/mochi-hpc/mochi-spack-packages /opt/spack/mochi-spack-packages
37- spack -e . repo add /opt/spack/ mochi-spack-packages
31+ git clone https://github.com/mochi-hpc/mochi-spack-packages
32+ spack -e tests repo add mochi-spack-packages
3833
3934 - name : Install spack environment
4035 run : |
41- spack -e . concretize -f
42- spack -e . install
36+ spack -e tests install
4337
4438 - name : Show spack-installed packages for debugging
4539 run : |
46- spack -e . find -dlv
47-
48- - name : Hack to make na+sm work
49- run : |
50- sudo /usr/sbin/sysctl kernel.yama.ptrace_scope=0
40+ spack -e tests find -dlv
5141
5242 - name : Build code run unit tests
5343 run : |
54- eval `spack env activate --sh .` &&
55- ./prepare.sh &&
56- ./configure --prefix=`pwd` &&
44+ eval `spack env activate --sh tests`
45+ ./prepare.sh
46+ ./configure --prefix=`pwd`
5747 make check
5848
5949 - name : Show logs
0 commit comments