try gfortran fix for macOS and ncurses fix for Linux #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build SST within Spack | |
# yamllint disable-line rule:truthy | |
on: | |
pull_request: | |
push: | |
schedule: | |
# 2:15 AM daily | |
- cron: '15 2 * * *' | |
jobs: | |
install-spack: | |
name: version:${{ matrix.version }} / os:${{ matrix.toolchain.os }} | |
runs-on: ${{ matrix.toolchain.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: | |
- {os: ubuntu-latest, compiler: gcc} | |
- {os: macos-13, compiler: apple-clang} | |
- {os: macos-14, compiler: apple-clang} | |
version: | |
- '13.1.0' | |
- 'master' | |
permissions: | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update system software | |
run: | | |
bash .github/workflows/install_os_deps.sh | |
- name: Clone Spack | |
uses: actions/checkout@v4 | |
with: | |
# Take the latest (develop) version. | |
repository: berquist/spack | |
ref: sst-ncurses | |
path: spack | |
- name: Add Spack to PATH and set mirror name | |
run: | | |
echo "${PWD}/spack/bin" >> "${GITHUB_PATH}" | |
echo "mirror_name=github-container-registry" >> "${GITHUB_ENV}" | |
- name: Print Spack configuration | |
run: | | |
spack compiler find --mixed-toolchain | |
spack config blame config | |
spack debug report | |
- name: Set credentials for mirror | |
run: | | |
eval "$(spack env activate --sh .)" | |
spack mirror set \ | |
--oci-username ${{ github.actor }} \ | |
--oci-password "${{ secrets.GITHUB_TOKEN }}" \ | |
"${mirror_name}" | |
- name: Install sst-core, sst-elements, and sst-macro | |
run: | | |
eval "$(spack env activate --sh .)" | |
spack add sst-core@${{ matrix.version }} %${{ matrix.toolchain.compiler }} | |
# spack add sst-elements@${{ matrix.version }} %${{ matrix.toolchain.compiler }} | |
# spack add sst-macro@${{ matrix.version }} %${{ matrix.toolchain.compiler }} | |
spack install --fail-fast | |
- name: Push packages and update index | |
run: | | |
eval "$(spack env activate --sh .)" | |
spack buildcache push \ | |
--unsigned \ | |
--update-index \ | |
"${mirror_name}" |