From c0a481e9a05b96bdef6eced3d66ab5c34391855d Mon Sep 17 00:00:00 2001 From: dhower-qc <134728312+dhower-qc@users.noreply.github.com> Date: Sun, 14 Jul 2024 20:31:36 -0400 Subject: [PATCH] Update regress.yml Cache the container Signed-off-by: dhower-qc <134728312+dhower-qc@users.noreply.github.com> --- .github/workflows/regress.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/regress.yml b/.github/workflows/regress.yml index b34a18dc4..6366b6228 100644 --- a/.github/workflows/regress.yml +++ b/.github/workflows/regress.yml @@ -12,7 +12,16 @@ jobs: uses: actions/checkout@v4 - name: Setup apptainer uses: eWaterCycle/setup-apptainer@v2.0.0 + - name: Get container from cache + id: cache-sif + uses: actions/cache@v3 + with: + path: .singularity/image.sif + key: oras://docker.io/riscvintl/spec-generator:0.1 + - if: ${{ steps.cache-sif.outputs.cache-hit != 'true' }} + name: Download container + run: apptainer pull .singularity/image.sif oras://docker.io/riscvintl/spec-generator:0.1 - name: Setup project - run: apptainer run --home ${{ github.workspace }}/.home oras://docker.io/riscvintl/spec-generator:0.1 ./bin/setup + run: apptainer run --home ${{ github.workspace }}/.home .singularity/image.sif ./bin/setup - name: Build html documentation for generic_rv64 - run: apptainer run --home ${{ github.workspace }}/.home oras://docker.io/riscvintl/spec-generator:0.1 bundle exec rake gen:html[generic_rv64] + run: apptainer run --home ${{ github.workspace }}/.home .singularity/image.sif bundle exec rake gen:html[generic_rv64]