rename OCI mirror and change its location #14
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: | |
jobs: | |
install-spack: | |
runs-on: ${{ matrix.os }} | |
name: version:${{ matrix.version }} / os:${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
version: | |
- '13.1.0' | |
permissions: | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Clone Spack | |
uses: actions/checkout@v4 | |
with: | |
repository: spack/spack | |
path: spack | |
- name: Add Spack to PATH | |
run: | | |
echo "${PWD}/spack/bin" >> "${GITHUB_PATH}" | |
- name: Print Spack configuration | |
run: | | |
spack config blame config | |
- name: Install sst-core, sst-elements, and sst-macro | |
run: | | |
eval "$(spack env activate --sh .)" | |
# spack add sst-core@${{ matrix.version }} | |
# spack add sst-elements@${{ matrix.version }} | |
# spack add sst-macro@${{ matrix.version }} | |
spack add git | |
spack install --fail-fast | |
- name: Push packages and update index | |
run: | | |
mirror_name="github-container-registry" | |
eval "$(spack env activate --sh .)" | |
spack env activate . | |
spack mirror set \ | |
--push \ | |
--oci-username ${{ github.actor }} \ | |
--oci-password "${{ secrets.GITHUB_TOKEN }}" \ | |
"${mirror_name}" | |
spack buildcache push \ | |
--unsigned \ | |
--update-index \ | |
"${mirror_name}" | |
if: ${{ !cancelled() }} |