@@ -8,29 +8,9 @@ concurrency: caches
8
8
9
9
jobs :
10
10
clear-caches :
11
- runs-on : ubuntu-latest
11
+ uses : ./.github/workflows/clear-caches.yml
12
12
permissions :
13
13
actions : write
14
- steps :
15
- # This will only delete up to 100 caches. That should be far more than
16
- # is ever needed.
17
- - name : Delete cache entries
18
- uses : actions/github-script@v6
19
- with :
20
- script : |
21
- const response = await github.rest.actions.getActionsCacheList({
22
- owner: context.repo.owner,
23
- repo: context.repo.repo,
24
- per_page: 100,
25
- key: 'cygwin-install-action-packages-'
26
- });
27
- for (const cache of response.data.actions_caches) {
28
- await github.rest.actions.deleteActionsCacheById({
29
- owner: context.repo.owner,
30
- repo: context.repo.repo,
31
- cache_id: cache.id
32
- });
33
- }
34
14
35
15
test-caching :
36
16
runs-on : windows-latest
53
33
# saveonly | yes (3) | no (7)
54
34
# restoreonly | no (4) | yes (8)
55
35
steps :
36
+ - name : Checkout
37
+ uses : actions/checkout@v3
56
38
57
39
- name : Install Cygwin + bash_completion, no caching
58
40
uses : ./
78
60
run : |
79
61
for file in /cygdrive/c/cygwin-packages/*/*/*/*/bash-completion-*.tar.*; do
80
62
[[ -f "$file" ]] && exit 1
81
- fi
63
+ done
82
64
83
65
- name : Delete the Cygwin installation and downloaded packages
84
66
run : |
98
80
run : |
99
81
for file in /cygdrive/c/cygwin-packages/*/*/*/*/brotli-*.tar.*; do
100
82
[[ -f "$file" ]] && exit 0
101
- fi
83
+ done
102
84
exit 1
103
85
104
86
- name : Delete the Cygwin installation and downloaded packages
@@ -119,7 +101,7 @@ jobs:
119
101
run : |
120
102
for file in /cygdrive/c/cygwin-packages/*/*/*/*/libyajl2-*.tar.*; do
121
103
[[ -f "$file" ]] && exit 1
122
- fi
104
+ done
123
105
124
106
- name : Delete the Cygwin installation and downloaded packages
125
107
run : |
@@ -139,7 +121,7 @@ jobs:
139
121
run : |
140
122
for file in /cygdrive/c/cygwin-packages/*/*/*/*/mksh-*.tar.*; do
141
123
[[ -f "$file" ]] && exit 1
142
- fi
124
+ done
143
125
144
126
- name : Delete the Cygwin installation and downloaded packages
145
127
run : |
@@ -158,7 +140,7 @@ jobs:
158
140
run : |
159
141
for file in /cygdrive/c/cygwin-packages/*/*/*/*/libgif7-*.tar.*; do
160
142
[[ -f "$file" ]] && exit 1
161
- fi
143
+ done
162
144
163
145
- name : Delete the Cygwin installation and downloaded packages
164
146
run : |
@@ -177,7 +159,7 @@ jobs:
177
159
run : |
178
160
for file in /cygdrive/c/cygwin-packages/*/*/*/*/mksh-*.tar.*; do
179
161
[[ -f "$file" ]] && exit 1
180
- fi
162
+ done
181
163
182
164
- name : Delete the Cygwin installation and downloaded packages
183
165
run : |
0 commit comments