Skip to content

Commit c34799c

Browse files
committed
CI: allow overwriting the build cache
1 parent 7e7f138 commit c34799c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,16 @@ jobs:
271271
if: runner.os == 'Linux'
272272
run: opam exec -- dune build --display quiet --profile static
273273

274+
- name: Delete stable compiler build state
275+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
276+
run: |
277+
gh actions-cache delete ${{ steps.compiler-build-state-key.outputs.value }} \
278+
-R ${{ github.repository }} \
279+
-B ${{ github.ref }} \
280+
--confirm || echo "not exist"
281+
env:
282+
GH_TOKEN: ${{ github.token }}
283+
274284
- name: Save compiler build state
275285
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
276286
uses: actions/cache/save@v4

0 commit comments

Comments
 (0)