Skip to content

Commit b37f9ef

Browse files
authored
ci: caches forge binary between steps (#78)
]
1 parent 2a7ecf6 commit b37f9ef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

actions/install-local/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,19 @@ runs:
1515
with:
1616
version: latest
1717
- name: Login to Earthly Cloud
18+
if: steps.cache-binary.outputs.cache-hit == false
1819
shell: bash
1920
run: |
2021
earthly account login --token ${{ inputs.earthly_token }}
2122
earthly org select Catalyst
23+
- name: Cache binary
24+
id: cache-binary
25+
uses: actions/cache@v4
26+
with:
27+
path: /usr/local/bin/forge
28+
key: ${{ runner.os }}-${{ github.sha }}
2229
- name: Build Forge CLI
30+
if: steps.cache-binary.outputs.cache-hit == false
2331
shell: bash
2432
run: |
2533
echo "::group::Forge CLI Earthly Build"

0 commit comments

Comments
 (0)