Skip to content

Commit

Permalink
Add Docker speculos image caching
Browse files Browse the repository at this point in the history
  • Loading branch information
franciszekjob committed Jan 13, 2025
1 parent 0aef095 commit 53718ca
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,24 @@ jobs:

# ====================== SETUP LEDGER SPECULOS ====================== #

- name: Pull speculos image
run: docker pull ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools@sha256:${{ env.LEDGER_APP_DEV_TOOLS_SHA }}
- name: Restore cached speculos image
id: speculos-docker-image-cache
uses: actions/cache@v4
with:
path: /tmp/ledger-image.tar
key: speculos-image-${{ env.LEDGER_APP_DEV_TOOLS_SHA }}
restore-keys: |
speculos-image-
- name: Load cached speculos image
if: steps.speculos-docker-image-cache.outputs.cache-hit == 'true'
run: docker load < /tmp/ledger-image.tar

- name: Pull speculos image (if not cached)
if: steps.speculos-docker-image-cache.outputs.cache-hit != 'true'
run: |
docker pull ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools@sha256:${{ env.LEDGER_APP_DEV_TOOLS_SHA }}
docker save ghcr.io/ledgerhq/ledger-app-builder/ledger-app-dev-tools@sha256:${{ env.LEDGER_APP_DEV_TOOLS_SHA }} > /tmp/ledger-image.tar
- name: Clone LedgerHQ Starknet app repository
run: git clone https://github.com/LedgerHQ/app-starknet.git
Expand Down

0 comments on commit 53718ca

Please sign in to comment.