Skip to content

Commit

Permalink
Update regress.yml
Browse files Browse the repository at this point in the history
Cache the container

Signed-off-by: dhower-qc <[email protected]>
  • Loading branch information
dhower-qc authored Jul 15, 2024
1 parent 26f0430 commit c0a481e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/regress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ jobs:
uses: actions/checkout@v4
- name: Setup apptainer
uses: eWaterCycle/[email protected]
- 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]

0 comments on commit c0a481e

Please sign in to comment.