Skip to content

Commit

Permalink
wip: adds caching
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Aug 29, 2024
1 parent 92fa2a9 commit 3563614
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions forge/actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,16 @@ runs:
if: steps.check.outputs.found == 'false'
with:
version: ${{ inputs.earthly_version }}
- name: Cache Forge CLI binary
id: cache-forge
uses: actions/cache@v3
with:
path: /usr/local/bin/forge
key: ${{ runner.os }}-forge-${{ hashFiles('forge/cli/**') }}
restore-keys: |
${{ runner.os }}-forge-
- name: Build Forge CLI
if: steps.cache-forge.outputs.cache-hit != 'true'
shell: bash
run: |
earthly --artifact ./forge/cli+build/forge /usr/local/bin/forge

0 comments on commit 3563614

Please sign in to comment.