Harden CI scripts so that they can be used on a newly provisioned system for the first and all subsequent spack-stack builds (after the prerequisites were installed, per instructions).
Also applies long overdue updates to the macos CI workflow so that it looks closer to the Ubuntu workflows. Note that we can't use the padded_length logic due to errors of invalid mach-o headers when modifying the install path length during the spack relocation.
Testing
[x] CI - removed existing binary cache on macOS to check that it actually works
Summary
Harden CI scripts so that they can be used on a newly provisioned system for the first and all subsequent spack-stack builds (after the prerequisites were installed, per instructions).
Also applies long overdue updates to the macos CI workflow so that it looks closer to the Ubuntu workflows. Note that we can't use the
padded_length
logic due to errors of invalid mach-o headers when modifying the install path length during the spack relocation.Testing
Applications affected
n/a
Systems affected
CI
Dependencies
n/a
Issue(s) addressed
Resolves https://github.com/JCSDA/spack-stack/issues/1144
Checklist
All dependency PRs/issues have been resolved and this PR can be merged.