File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 58
58
- name : Set up Docker Buildx
59
59
uses : docker/setup-buildx-action@v3
60
60
61
- - name : Setup cache
61
+ - name : Restore cache
62
62
if : github.event_name != 'workflow_dispatch' || fromJSON(github.event.inputs.useCache)
63
- uses : actions/cache@v4
63
+ uses : actions/cache/restore@v3
64
64
with :
65
65
path : .buildx-cache-${{ matrix.policy }}_${{ matrix.platform }}/*
66
66
key : buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}-${{ hashFiles('docker/**') }}
69
69
- name : Build
70
70
run : ./build.sh
71
71
72
+ - name : Save cache
73
+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
74
+ uses : actions/cache/save@v3
75
+ with :
76
+ path : .buildx-cache-${{ matrix.policy }}_${{ matrix.platform }}/*
77
+ key : buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}-${{ hashFiles('docker/**') }}
78
+
72
79
- name : Deploy
73
80
if : github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'pypa/manylinux'
74
81
run : ./deploy.sh
You can’t perform that action at this time.
0 commit comments