There was an error while loading. Please reload this page.
1 parent 8007c65 commit e1e1bc4Copy full SHA for e1e1bc4
.github/workflows/build.yml
@@ -31,6 +31,8 @@ jobs:
31
build_manylinux:
32
name: ${{ matrix.policy }}_${{ matrix.platform }}
33
runs-on: ubuntu-22.04
34
+ permissions:
35
+ actions: write # this permission is needed to delete cache
36
strategy:
37
fail-fast: false
38
matrix:
@@ -70,6 +72,12 @@ jobs:
70
72
- name: Build
71
73
run: ./build.sh
74
75
+ - name: Delete cache
76
+ if: github.event_name == 'push' && github.ref == 'refs/heads/main'
77
+ run: |
78
+ KEY="buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}"
79
+ gh cache delete ${KEY} || true
80
+
81
- name: Save cache
82
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
83
uses: actions/cache/save@v4
0 commit comments