From 7dd6b8887789bb20da856fb1015d7b2cd7b056bb Mon Sep 17 00:00:00 2001 From: Gregory Lemieux Date: Mon, 21 Jul 2025 17:01:16 -0700 Subject: [PATCH 1/2] update spack setup to use the spack official action --- .github/workflows/spack-container-build.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/spack-container-build.yml b/.github/workflows/spack-container-build.yml index e9a3e85..22e57bd 100644 --- a/.github/workflows/spack-container-build.yml +++ b/.github/workflows/spack-container-build.yml @@ -20,20 +20,20 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 + - name: Setup Spack + uses: spack/setup-spack@v2 with: - python-version: '3.10' - - - name: Install Spack - run: | - git clone --depth 1 --branch v0.23.0 https://github.com/spack/spack.git - echo "${GITHUB_WORKSPACE}/spack/bin" >> $GITHUB_PATH + ref: release/v0.22 + buildcache: true + color: true + path: spack - name: Generate Dockerfile with Spack + shell: spack-bash {0} + working-directory: spack-env run: | - cd spack-env - ../spack/bin/spack containerize > Dockerfile + spack env activate . + spack containerize > Dockerfile # Update the Dockerfile for human review for debugging if necessary - name: Upload generated Dockerfile From 4c1e98e23004c86accc6352ecfc3e0718709eeb1 Mon Sep 17 00:00:00 2001 From: Gregory Lemieux Date: Mon, 21 Jul 2025 17:04:04 -0700 Subject: [PATCH 2/2] correct typo in spack ref --- .github/workflows/spack-container-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spack-container-build.yml b/.github/workflows/spack-container-build.yml index 22e57bd..0390577 100644 --- a/.github/workflows/spack-container-build.yml +++ b/.github/workflows/spack-container-build.yml @@ -23,7 +23,7 @@ jobs: - name: Setup Spack uses: spack/setup-spack@v2 with: - ref: release/v0.22 + ref: releases/v0.22 buildcache: true color: true path: spack