2020name : CI - Build binary artifacts
2121on :
2222 push :
23- branches :
24- - ' *'
2523 tags :
2624 - ' *'
2725
4341 - name : Package Pulsar source
4442 run : build-support/generate-source-archive.sh
4543
44+ - uses : docker/setup-buildx-action@v2
45+ - run : build-support/copy-deps-versionfile.sh
46+
47+ - name : Build dependencies Docker image
48+ uses : docker/build-push-action@v3
49+ with :
50+ context : ./pkg/deb
51+ load : true
52+ tags : build-deb-x86_64:latest
53+ build-args : PLATFORM=x86_64
54+ cache-from : type=gha
55+ cache-to : type=gha,mode=max
56+
4657 - name : Build Debian packages
47- run : pkg/deb/docker-build-deb-x86_64.sh
58+ run : pkg/deb/docker-build-deb-x86_64.sh build-deb-x86_64:latest
4859
4960 - name : Upload artifacts
5061 uses : actions/upload-artifact@v3
6778 - name : Package Pulsar source
6879 run : build-support/generate-source-archive.sh
6980
81+ - uses : docker/setup-buildx-action@v2
82+ - run : build-support/copy-deps-versionfile.sh
83+
84+ - name : Build dependencies Docker image
85+ uses : docker/build-push-action@v3
86+ with :
87+ context : ./pkg/deb
88+ load : true
89+ tags : build-deb-arm64:latest
90+ build-args : PLATFORM=aarch64
91+ platforms : linux/arm64
92+ cache-from : type=gha
93+ cache-to : type=gha,mode=max
94+
7095 - name : Build Debian packages
71- run : pkg/deb/docker-build-deb-arm64.sh
96+ run : pkg/deb/docker-build-deb-arm64.sh build-deb-arm64:latest
7297
7398 - name : Upload artifacts
7499 uses : actions/upload-artifact@v3
@@ -88,8 +113,21 @@ jobs:
88113 - name : Package Pulsar source
89114 run : build-support/generate-source-archive.sh
90115
116+ - uses : docker/setup-buildx-action@v2
117+ - run : build-support/copy-deps-versionfile.sh
118+
119+ - name : Build dependencies Docker image
120+ uses : docker/build-push-action@v3
121+ with :
122+ context : ./pkg/rpm
123+ load : true
124+ tags : build-rpm-x86_64:latest
125+ build-args : PLATFORM=x86_64
126+ cache-from : type=gha
127+ cache-to : type=gha,mode=max
128+
91129 - name : Build RPM packages
92- run : pkg/rpm/docker-build-rpm-x86_64.sh
130+ run : pkg/rpm/docker-build-rpm-x86_64.sh build-rpm-x86_64:latest
93131
94132 - name : Upload artifacts
95133 uses : actions/upload-artifact@v3
@@ -112,11 +150,97 @@ jobs:
112150 - name : Package Pulsar source
113151 run : build-support/generate-source-archive.sh
114152
153+ - uses : docker/setup-buildx-action@v2
154+ - run : build-support/copy-deps-versionfile.sh
155+
156+ - name : Build dependencies Docker image
157+ uses : docker/build-push-action@v3
158+ with :
159+ context : ./pkg/rpm
160+ load : true
161+ tags : build-rpm-arm64:latest
162+ build-args : PLATFORM=aarch64
163+ platforms : linux/arm64
164+ cache-from : type=gha
165+ cache-to : type=gha,mode=max
166+
115167 - name : Build RPM packages
116- run : pkg/rpm/docker-build-rpm-arm64.sh
168+ run : pkg/rpm/docker-build-rpm-arm64.sh build-rpm-arm64:latest
117169
118170 - name : Upload artifacts
119171 uses : actions/upload-artifact@v3
120172 with :
121173 name : rpm-arm64
122174 path : pkg/rpm/RPMS
175+
176+ apk-packaging-x86_64 :
177+ name : Build Alpine Linux APK Package - x86_64
178+ runs-on : ubuntu-20.04
179+ timeout-minutes : 120
180+
181+ steps :
182+ - name : checkout
183+ uses : actions/checkout@v2
184+
185+ - name : Package Pulsar source
186+ run : build-support/generate-source-archive.sh
187+
188+ - uses : docker/setup-buildx-action@v2
189+ - run : build-support/copy-deps-versionfile.sh
190+
191+ - name : Build dependencies Docker image
192+ uses : docker/build-push-action@v3
193+ with :
194+ context : ./pkg/apk
195+ load : true
196+ tags : build-apk-x86_64:latest
197+ build-args : PLATFORM=x86_64
198+ cache-from : type=gha
199+ cache-to : type=gha,mode=max
200+
201+ - name : Build APK packages
202+ run : pkg/apk/docker-build-apk-x86_64.sh build-apk-x86_64:latest
203+
204+ - name : Upload artifacts
205+ uses : actions/upload-artifact@v3
206+ with :
207+ name : apk-x86_64
208+ path : pkg/apk/build/x86_64
209+
210+ apk-packaging-arm64 :
211+ name : Build Alpine Linux APK Package - arm64
212+ runs-on : ubuntu-20.04
213+ timeout-minutes : 120
214+
215+ steps :
216+ - name : checkout
217+ uses : actions/checkout@v2
218+
219+ - name : Set up QEMU
220+ uses : docker/setup-qemu-action@v1
221+
222+ - name : Package Pulsar source
223+ run : build-support/generate-source-archive.sh
224+
225+ - uses : docker/setup-buildx-action@v2
226+ - run : build-support/copy-deps-versionfile.sh
227+
228+ - name : Build dependencies Docker image
229+ uses : docker/build-push-action@v3
230+ with :
231+ context : ./pkg/apk
232+ load : true
233+ tags : build-apk-arm64:latest
234+ build-args : PLATFORM=aarch64
235+ platforms : linux/arm64
236+ cache-from : type=gha
237+ cache-to : type=gha,mode=max
238+
239+ - name : Build APK packages
240+ run : pkg/apk/docker-build-apk-arm64.sh build-apk-arm64:latest
241+
242+ - name : Upload artifacts
243+ uses : actions/upload-artifact@v3
244+ with :
245+ name : apk-arm64
246+ path : pkg/apk/build/aarch64
0 commit comments