14
14
REGISTRY : ghcr.io
15
15
BUSYBOX_VERSION : 5ad83957fa74aafd061afbfb8da14ce3220659a9
16
16
REGISTRY_VERSION : v2.8.3
17
+ CURL_VERSION : 8.11.0_4
17
18
18
19
jobs :
19
20
build-busybox :
25
26
with :
26
27
path : busybox.exe
27
28
enableCrossOsArchive : true
28
- key : cache-busybox-${{ env.BUSYBOX_VERSION }}-a
29
+ key : cache-busybox-${{ env.BUSYBOX_VERSION }}
29
30
- uses : actions/checkout@v4
30
31
if : steps.cache-busybox.outputs.cache-hit != 'true'
31
32
with :
43
44
cd -
44
45
cp ./src/busybox-w32/busybox.exe .
45
46
47
+ build-curl :
48
+ name : busybox
49
+ runs-on : ubuntu-24.04
50
+ steps :
51
+ - id : cache-curl
52
+ uses : actions/cache@v4
53
+ with :
54
+ path : curl.exe
55
+ enableCrossOsArchive : true
56
+ key : cache-curl-${{ env.CURL_VERSION }}
57
+ - name : " "
58
+ if : steps.cache-curl.outputs.cache-hit != 'true'
59
+ run : |
60
+ curl -fsSL https://curl.se/windows/dl-${CURL_VERSION}/curl-${CURL_VERSION}-win64-mingw.zip
61
+ unzip curl-${CURL_VERSION}-win64-mingw.zip
62
+ cp ./curl-${CURL_VERSION}-win64-mingw/bin/curl.exe .
63
+
64
+
46
65
build-registry :
47
66
name : registry
48
67
runs-on : ubuntu-24.04
52
71
with :
53
72
path : build
54
73
enableCrossOsArchive : true
55
- key : cache-registry-${{ env.REGISTRY_VERSION }}-a
74
+ key : cache-registry-${{ env.REGISTRY_VERSION }}
56
75
- uses : actions/checkout@v4
57
76
if : steps.cache-registry.outputs.cache-hit != 'true'
58
77
with :
82
101
image-busybox :
83
102
name : image-busybox
84
103
runs-on : windows-2022
85
- needs : build-busybox
104
+ needs :
105
+ - build-busybox
106
+ - build-curl
86
107
defaults :
87
108
run :
88
109
shell : bash
@@ -92,7 +113,14 @@ jobs:
92
113
with :
93
114
path : busybox.exe
94
115
enableCrossOsArchive : true
95
- key : cache-busybox-${{ env.BUSYBOX_VERSION }}-a
116
+ key : cache-busybox-${{ env.BUSYBOX_VERSION }}
117
+ fail-on-cache-miss : true
118
+ - uses : actions/cache/restore@v4
119
+ id : cache-curl
120
+ with :
121
+ path : curl.exe
122
+ enableCrossOsArchive : true
123
+ key : cache-curl-${{ env.CURL_VERSION }}
96
124
fail-on-cache-miss : true
97
125
- name : " Prep busybox image"
98
126
run : |
@@ -102,6 +130,7 @@ jobs:
102
130
RUN mkdir C:\\tmp
103
131
RUN mkdir C:\\bin
104
132
COPY busybox.exe C:/bin/
133
+ COPY curl.exe C:/bin/
105
134
ENV PATH="C:\\bin;\$WindowsPATH;C:\\Windows\\System32"
106
135
# FIXME: does not work for some reason
107
136
# RUN setx /M PATH "C:\\bin;%PATH%"
@@ -127,7 +156,7 @@ jobs:
127
156
with :
128
157
path : build
129
158
enableCrossOsArchive : true
130
- key : cache-registry-${{ env.REGISTRY_VERSION }}-a
159
+ key : cache-registry-${{ env.REGISTRY_VERSION }}
131
160
fail-on-cache-miss : true
132
161
- name : " Prep registry image"
133
162
run : |
0 commit comments