File tree Expand file tree Collapse file tree 1 file changed +31
-7
lines changed Expand file tree Collapse file tree 1 file changed +31
-7
lines changed Original file line number Diff line number Diff line change 15
15
- develop
16
16
17
17
jobs :
18
- GCC :
18
+ build_spack :
19
19
runs-on : ubuntu-latest
20
20
21
21
strategy :
22
22
matrix :
23
- cmake_opts : ["-D32BIT=ON", "-D32BIT=OFF"]
24
23
gcc_ver : ["12"]
25
24
mpi : ["openmpi"]
26
25
27
26
steps :
28
27
29
- - name : install-doxygen
30
- run : |
31
- sudo apt-get install doxygen graphviz
32
-
33
28
- name : checkout-fv3atm
34
29
uses : actions/checkout@v3
35
30
with :
41
36
uses : actions/cache@v3
42
37
with :
43
38
path : ${{ github.workspace }}/spack-develop
44
- key : spack-${{ hashFiles('fv3atm/ci/spack.yaml') }}-gcc${{ matrix.gcc_ver }}-${{ matrix.mpi }}-${{ matrix.cmake_opts }}
39
+ key : spack-${{ hashFiles('fv3atm/ci/spack.yaml') }}-gcc${{ matrix.gcc_ver }}-${{ matrix.mpi }}
45
40
46
41
# Building dependencies takes 40+ min
47
42
- name : spack-install
60
55
spack install -j2 --fail-fast
61
56
spack clean --all
62
57
58
+ build_fv3atm :
59
+ needs : build_spack
60
+ runs-on : ubuntu-latest
61
+
62
+ strategy :
63
+ matrix :
64
+ cmake_opts : ["-D32BIT=ON", "-D32BIT=OFF"]
65
+ gcc_ver : ["12"]
66
+ mpi : ["openmpi"]
67
+
68
+ steps :
69
+
70
+ - name : install-doxygen
71
+ run : |
72
+ sudo apt-get install doxygen graphviz
73
+
74
+ - name : checkout-fv3atm
75
+ uses : actions/checkout@v3
76
+ with :
77
+ path : ${{ github.workspace }}/fv3atm
78
+ submodules : recursive
79
+
80
+ - name : cache-spack
81
+ id : cache-spack
82
+ uses : actions/cache@v3
83
+ with :
84
+ path : ${{ github.workspace }}/spack-develop
85
+ key : spack-${{ hashFiles('fv3atm/ci/spack.yaml') }}-gcc${{ matrix.gcc_ver }}-${{ matrix.mpi }}
86
+
63
87
- name : build-fv3atm
64
88
run : |
65
89
. ${GITHUB_WORKSPACE}/spack-develop/share/spack/setup-env.sh
You can’t perform that action at this time.
0 commit comments