diff --git a/actions/install-local/action.yml b/actions/install-local/action.yml index 8ba35881..ff251dd2 100644 --- a/actions/install-local/action.yml +++ b/actions/install-local/action.yml @@ -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"