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, 12, 13 ]
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,15 @@ 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+ gcc --version
71+ test -f $GITHUB_WORKSPACE/spack/etc/spack/packages.yaml || cat > $GITHUB_WORKSPACE/spack/etc/spack/packages.yaml << 'EOF'
7072 packages:
7173 all:
7274 target: [x86_64]
@@ -75,50 +77,50 @@ jobs:
7577 autoconf:
7678 buildable: False
7779 externals:
78- - spec: "autoconf@2.69 "
80+ - spec: "autoconf@2.71 "
7981 prefix: /usr
8082 automake:
8183 buildable: False
8284 externals:
83- - spec: "automake@1.16.1 "
85+ - spec: "automake@1.16.5 "
8486 prefix: /usr
8587 libtool:
8688 buildable: False
8789 externals:
88- - spec: "libtool@2.4.6 "
90+ - spec: "libtool@2.4.7 "
8991 prefix: /usr
9092 m4:
9193 buildable: False
9294 externals:
93- - spec: "m4@1.4.18 "
95+ - spec: "m4@1.4.19 "
9496 prefix: /usr
9597 openmpi:
9698 buildable: False
9799 externals:
98- - spec: "openmpi@4.0.3 "
100+ - spec: "openmpi@4.1.6 "
99101 prefix: /usr
100102 openssl:
101103 buildable: False
102104 externals:
103- - spec: "openssl@1.1.1f "
105+ - spec: "openssl@3.0.13 "
104106 prefix: /usr
105107 pkg-config:
106108 buildable: False
107109 externals:
108- - spec: "pkg-config@0.29.1 "
110+ - spec: "pkg-config@0.29.2 "
109111 prefix: /usr
110112 EOF
111113 spack compiler find --scope=user
112- if [[ $CC == 'gcc-7' ]]; then
113- spack config add "packages:all:compiler:[gcc@7.5.0]"
114- elif [[ $CC == 'gcc-8' ]]; then
115- spack config add "packages:all:compiler:[gcc@8.4.0]"
116- elif [[ $CC == 'gcc-9' ]]; then
117- spack config add "packages:all:compiler:[gcc@9.3.0]"
114+ if [[ $CC == 'gcc-9' ]]; then
115+ spack config add "packages:all:compiler:[gcc@9.5.0]"
116+ elif [[ $CC == 'gcc-10' ]]; then
117+ spack config add "packages:all:compiler:[gcc@10.5.0]"
118118 elif [[ $CC == 'gcc-11' ]]; then
119- spack config add "packages:all:compiler:[gcc@11.1.0]"
119+ spack config add "packages:all:compiler:[gcc@11.5.0]"
120+ elif [[ $CC == 'gcc-12' ]]; then
121+ spack config add "packages:all:compiler:[gcc@12.4.0]"
120122 else
121- spack config add "packages:all:compiler:[gcc@10 .3.0]"
123+ spack config add "packages:all:compiler:[gcc@13 .3.0]"
122124 fi
123125 spack external find
124126 spack config add modules:prefix_inspections:lib64:[LD_LIBRARY_PATH]
0 commit comments