Skip to content

Commit

Permalink
adding webbpsf data caching to GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorris3 committed Jul 27, 2023
1 parent dd1431a commit 37c4ba7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/roman_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,25 @@ concurrency:
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cache WebbPSF data
id: cache-webbpsf
uses: actions/cache@v3
env:
cache-name: cache-webbpsf-data
with:
path: ./webbpsf-data
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
run: | # Get WebbPSF data files (just a subset of the full dataset!) and set up environment variable
wget https://stsci.box.com/shared/static/ykkvequ9cbble6qg88ldhjoep4m9ey6x.gz -O /tmp/minimal-webbpsf-data.tar.gz
tar -xzvf /tmp/minimal-webbpsf-data.tar.gz
echo "WEBBPSF_PATH=${{github.workspace}}/webbpsf-data" >> $GITHUB_ENV
crds:
name: retrieve current CRDS context
runs-on: ubuntu-latest
Expand Down

0 comments on commit 37c4ba7

Please sign in to comment.