File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 if : github.repository == 'defstream/kickable-rs'
2020 env :
2121 FORCE_COLOR : 1
22- EARTHLY_TOKEN : ${{ secrets.EARTHLY_TOKEN }}
2322 steps :
2423 - name : harden runner
2524 uses : step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
@@ -29,34 +28,17 @@ jobs:
2928 - name : checkout
3029 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3130
32- - name : update git branch
33- run : |
34- branch=""
35- if [ -n "$GITHUB_HEAD_REF" ]; then
36- branch="$GITHUB_HEAD_REF"
37- else
38- branch="${GITHUB_REF##*/}"
39- fi
40- git checkout -b "$branch" || true
41-
4231 - name : setup earthly
43- uses : earthly/actions-setup@f2bef5b3261c9d75ac09a578552257195fea300a # v1.0.9
32+ uses : earthly/actions-setup@b81a8e082d9fae6174210cfc6e54bd2feb124d94 # v1.0.13
4433 with :
4534 version : latest
4635
47- - name : hash
48- id : hash
49- shell : bash
50- run : |
51- echo "cargo_lock=${{ hashFiles('Cargo.lock') }}" >> "$GITHUB_OUTPUT"
52- echo "workflow_yml=${{ hashFiles('.github/workflows/earthly.yml') }}" >> "$GITHUB_OUTPUT"
53-
5436 - name : cache earthly
5537 uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
56- continue-on-error : false
38+ continue-on-error : true
5739 with :
5840 path : /var/lib/docker/volumes/earthly-cache/
59- key : earthly-${{ steps.hash.outputs.cargo_lock }}-${{ steps.hash.outputs.workflow_yml }}
41+ key : earthly-${{ hashFiles('Cargo.lock') }}-${{ hashFiles('.github/workflows/earthly.yml') }}
6042
6143 - name : run build
62- run : earthly --ci --save-inline-cache --use-inline-cache --max-remote-cache +archive
44+ run : earthly --ci +archive
You can’t perform that action at this time.
0 commit comments