Skip to content

Commit

Permalink
ci: caches forge binary between steps (#78)
Browse files Browse the repository at this point in the history
]
  • Loading branch information
jmgilman authored Oct 18, 2024
1 parent 2a7ecf6 commit b37f9ef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions actions/install-local/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,19 @@ runs:
with:
version: latest
- name: Login to Earthly Cloud
if: steps.cache-binary.outputs.cache-hit == false
shell: bash
run: |
earthly account login --token ${{ inputs.earthly_token }}
earthly org select Catalyst
- name: Cache binary
id: cache-binary
uses: actions/cache@v4
with:
path: /usr/local/bin/forge
key: ${{ runner.os }}-${{ github.sha }}
- name: Build Forge CLI
if: steps.cache-binary.outputs.cache-hit == false
shell: bash
run: |
echo "::group::Forge CLI Earthly Build"
Expand Down

0 comments on commit b37f9ef

Please sign in to comment.