From 661906d4d7c25cb3456d1cbcbc05d8b2ca78d35a Mon Sep 17 00:00:00 2001 From: ananas Date: Wed, 8 Oct 2025 21:50:42 +0100 Subject: [PATCH] chore: add anchor and photon caching --- .github/actions/setup/action.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 578a2a7..3ceb16f 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -59,6 +59,22 @@ runs: ~/.local/share/solana/ key: solana-cli-${{ runner.os }}-build-${{ inputs.solana-cli-version }} + - name: Cache AVM and Anchor + if: inputs.node-version != '' + uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/avm + ~/.avm + key: avm-anchor-${{ runner.os }}-${{ inputs.anchor-version }} + + - name: Cache Photon indexer + if: inputs.photon-indexer == 'true' + uses: actions/cache@v4 + with: + path: ~/.cargo/bin/photon + key: photon-${{ runner.os }}-49b7e7f0d668babbc4d65fe8a0a7236df76f75a8 + - name: Install Solana CLI tools shell: bash run: |