1010 runs-on : [ ubuntu-latest ]
1111
1212 steps :
13- - uses : actions/checkout@v3
13+ - uses : actions/checkout@v4
1414 with :
1515 fetch-depth : 2
1616
2424 strategy :
2525 fail-fast : false
2626 matrix :
27- os : [ ubuntu-20.04 ]
27+ os : [ ubuntu-latest ]
2828 compiler : [ gcc ]
29- gcc : [ 7, 8, 9, 10, 11 ]
29+ gcc : [ 9, 10, 11 ]
3030
3131 name : ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.gcc }}
3232
@@ -39,11 +39,11 @@ jobs:
3939 steps :
4040 - name : Push checkout
4141 if : github.event_name == 'push'
42- uses : actions/checkout@v3
42+ uses : actions/checkout@v4
4343
4444 - name : PR checkout
4545 if : github.event_name == 'pull_request'
46- uses : actions/checkout@v3
46+ uses : actions/checkout@v4
4747 with :
4848 ref : ${{ github.event.pull_request.head.sha }}
4949
@@ -60,13 +60,14 @@ jobs:
6060 sudo apt-get install libopenmpi-dev
6161
6262 - name : Install Spack
63- uses : kzscisoft/install -spack@v1
63+ uses : spack/setup -spack@v2
6464 with :
65- version : develop
65+ ref : develop
66+ path : spack
6667
6768 - name : Set up packages.yaml
6869 run : |
69- test -f $GITHUB_WORKSPACE/. spack/etc/spack/packages.yaml || cat > $GITHUB_WORKSPACE/. spack/etc/spack/packages.yaml << 'EOF'
70+ test -f $GITHUB_WORKSPACE/spack/etc/spack/packages.yaml || cat > $GITHUB_WORKSPACE/spack/etc/spack/packages.yaml << 'EOF'
7071 packages:
7172 all:
7273 target: [x86_64]
@@ -75,50 +76,46 @@ jobs:
7576 autoconf:
7677 buildable: False
7778 externals:
78- - spec: "autoconf@2.69 "
79+ - spec: "autoconf@2.71 "
7980 prefix: /usr
8081 automake:
8182 buildable: False
8283 externals:
83- 84+ 8485 prefix: /usr
8586 libtool:
8687 buildable: False
8788 externals:
88- 89+ 8990 prefix: /usr
9091 m4:
9192 buildable: False
9293 externals:
93- 94+ 9495 prefix: /usr
9596 openmpi:
9697 buildable: False
9798 externals:
98- - spec: "openmpi@4.0.3 "
99+ - spec: "openmpi@4.1.6 "
99100 prefix: /usr
100101 openssl:
101102 buildable: False
102103 externals:
103- - spec: "openssl@1.1.1f "
104+ - spec: "openssl@3.0.13 "
104105 prefix: /usr
105106 pkg-config:
106107 buildable: False
107108 externals:
108- 109+ 109110 prefix: /usr
110111 EOF
111- spack compiler find --scope=user
112- if [[ $CC == 'gcc-7' ]]; then
113- spack config add "packages:all:compiler:[[email protected] ]" 114- elif [[ $CC == 'gcc-8' ]]; then
115- spack config add "packages:all:compiler:[[email protected] ]" 116- elif [[ $CC == 'gcc-9' ]]; then
117- spack config add "packages:all:compiler:[[email protected] ]" 118- elif [[ $CC == 'gcc-11' ]]; then
119- spack config add "packages:all:compiler:[[email protected] ]" 112+ spack compiler find /usr/local/bin
113+ if [[ $CC == 'gcc-9' ]]; then
114+ spack config add "packages:all:compiler:[[email protected] ]" 115+ elif [[ $CC == 'gcc-10' ]]; then
116+ spack config add "packages:all:compiler:[[email protected] ]" 120117 else
121- spack config add "packages:all:compiler:[gcc@10.3 .0]"
118+ spack config add "packages:all:compiler:[gcc@11.5 .0]"
122119 fi
123120 spack external find
124121 spack config add modules:prefix_inspections:lib64:[LD_LIBRARY_PATH]
@@ -133,17 +130,17 @@ jobs:
133130 echo "SPATH_INSTALL=$(spack location -i spath)" >> $GITHUB_ENV
134131
135132 - name : Configure and Build
133+ shell : spack-sh {0}
136134 run : |
137135 export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig
138- source $GITHUB_WORKSPACE/.spack/share/spack/setup-env.sh
139136 spack load gotcha && spack load argobots && spack load mercury && spack load mochi-margo && spack load spath
140137 ./autogen.sh
141138 ./configure CC=$CC --with-gotcha=$GOTCHA_INSTALL --with-spath=$SPATH_INSTALL --enable-fortran
142139 make V=1
143140
144141 - name : Unit Tests
142+ shell : spack-sh {0}
145143 run : |
146- source $GITHUB_WORKSPACE/.spack/share/spack/setup-env.sh
147144 spack load gotcha && spack load argobots && spack load mercury && spack load mochi-margo && spack load spath
148145 cd t && make check
149146
0 commit comments