Commit 72790d4
committed
Add caching and fix build issues in Spack CI
Changes:
1. Add GitHub Actions cache for Spack dependencies
- Caches spack/opt/spack (installed packages)
- Caches spack/var/spack/cache (downloaded sources)
- Key based on package.py hash for cache invalidation
- Dramatically speeds up subsequent CI runs
2. Split dependency installation into separate step
- Install dependencies first (these benefit from cache)
- Install MFC separately for clearer CI output
- Reduced timeouts since cached builds are much faster
3. Use mfc@master instead of v5.1.0
- v5.1.0 has parallel build dependency issues with m_thermochem
- Master branch has fixes for parallel builds
- More representative of what users will install
Expected improvement: ~70min -> ~10min on cache hit1 parent cc5e285 commit 72790d4
1 file changed
Lines changed: 21 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
148 | 158 | | |
149 | 159 | | |
150 | 160 | | |
| |||
157 | 167 | | |
158 | 168 | | |
159 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
160 | 177 | | |
161 | 178 | | |
162 | 179 | | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
167 | 184 | | |
168 | 185 | | |
169 | 186 | | |
| |||
0 commit comments