-
Notifications
You must be signed in to change notification settings - Fork 1.7k
831 lines (809 loc) · 32.6 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
name: Publish
permissions:
contents: read
packages: write
on:
workflow_call:
inputs:
git_ref:
type: string
required: true
# channel is the dir/namespace packages are organized into.
# Options are release/nightly/custom.
channel:
type: string
required: true
env:
VERBOSE: true
CI: true
DISABLE_MOLD: true
DEBIAN_FRONTEND: noninteractive
CONTAINER_TOOL: docker
CARGO_PROFILE_RELEASE_LTO: fat
CARGO_PROFILE_RELEASE_CODEGEN_UNITS: 1
# observing issues fetching boringssl via HTTPS in the OSX build, seeing if this helps
# can be removed when we switch back to the upstream openssl-sys crate
CARGO_NET_GIT_FETCH_WITH_CLI: true
CHANNEL: ${{ inputs.channel }}
jobs:
generate-publish-metadata:
name: Generate Publish-related Metadata
runs-on: ubuntu-20.04
timeout-minutes: 5
outputs:
vector_version: ${{ steps.generate-publish-metadata.outputs.vector_version }}
vector_build_desc: ${{ steps.generate-publish-metadata.outputs.vector_build_desc }}
vector_release_channel: ${{ steps.generate-publish-metadata.outputs.vector_release_channel }}
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Generate publish metadata
id: generate-publish-metadata
run: make ci-generate-publish-metadata
build-x86_64-unknown-linux-musl-packages:
name: Build Vector for x86_64-unknown-linux-musl (.tar.gz)
runs-on: release-builder-linux
timeout-minutes: 60
needs: generate-publish-metadata
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
VECTOR_BUILD_DESC: ${{ needs.generate-publish-metadata.outputs.vector_build_desc }}
CHANNEL: ${{ needs.generate-publish-metadata.outputs.vector_release_channel }}
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Bootstrap runner environment (Ubuntu-specific)
run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh
- name: Bootstrap runner environment (generic)
run: bash scripts/environment/prepare.sh
- name: Build Vector
run: make package-x86_64-unknown-linux-musl-all
- name: Stage package artifacts for publish
uses: actions/upload-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-unknown-linux-musl
path: target/artifacts/vector*
build-x86_64-unknown-linux-gnu-packages:
name: Build Vector for x86_64-unknown-linux-gnu (.tar.gz, DEB, RPM)
runs-on: release-builder-linux
needs: generate-publish-metadata
timeout-minutes: 60
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
VECTOR_BUILD_DESC: ${{ needs.generate-publish-metadata.outputs.vector_build_desc }}
CHANNEL: ${{ needs.generate-publish-metadata.outputs.vector_release_channel }}
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Bootstrap runner environment (Ubuntu-specific)
run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh
- name: Bootstrap runner environment (generic)
run: bash scripts/environment/prepare.sh
- name: Build Vector
run: make package-x86_64-unknown-linux-gnu-all
- name: Stage package artifacts for publish
uses: actions/upload-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-unknown-linux-gnu
path: target/artifacts/vector*
build-aarch64-unknown-linux-musl-packages:
name: Build Vector for aarch64-unknown-linux-musl (.tar.gz)
runs-on: release-builder-linux
timeout-minutes: 60
needs: generate-publish-metadata
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
VECTOR_BUILD_DESC: ${{ needs.generate-publish-metadata.outputs.vector_build_desc }}
CHANNEL: ${{ needs.generate-publish-metadata.outputs.vector_release_channel }}
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Bootstrap runner environment (Ubuntu-specific)
run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh
- name: Bootstrap runner environment (generic)
run: bash scripts/environment/prepare.sh
- name: Build Vector
env:
DOCKER_PRIVILEGED: "true"
run: make package-aarch64-unknown-linux-musl-all
- name: Stage package artifacts for publish
uses: actions/upload-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-aarch64-unknown-linux-musl
path: target/artifacts/vector*
build-aarch64-unknown-linux-gnu-packages:
name: Build Vector for aarch64-unknown-linux-gnu (.tar.gz)
runs-on: release-builder-linux
timeout-minutes: 60
needs: generate-publish-metadata
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
VECTOR_BUILD_DESC: ${{ needs.generate-publish-metadata.outputs.vector_build_desc }}
CHANNEL: ${{ needs.generate-publish-metadata.outputs.vector_release_channel }}
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Bootstrap runner environment (Ubuntu-specific)
run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh
- name: Bootstrap runner environment (generic)
run: bash scripts/environment/prepare.sh
- name: Build Vector
env:
DOCKER_PRIVILEGED: "true"
run: make package-aarch64-unknown-linux-gnu-all
- name: Stage package artifacts for publish
uses: actions/upload-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-aarch64-unknown-linux-gnu
path: target/artifacts/vector*
build-armv7-unknown-linux-gnueabihf-packages:
name: Build Vector for armv7-unknown-linux-gnueabihf (.tar.gz)
runs-on: release-builder-linux
timeout-minutes: 60
needs: generate-publish-metadata
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
VECTOR_BUILD_DESC: ${{ needs.generate-publish-metadata.outputs.vector_build_desc }}
CHANNEL: ${{ needs.generate-publish-metadata.outputs.vector_release_channel }}
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Bootstrap runner environment (Ubuntu-specific)
run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh
- name: Bootstrap runner environment (generic)
run: bash scripts/environment/prepare.sh
- name: Build Vector
env:
DOCKER_PRIVILEGED: "true"
run: make package-armv7-unknown-linux-gnueabihf-all
- name: Stage package artifacts for publish
uses: actions/upload-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-armv7-unknown-linux-gnueabihf
path: target/artifacts/vector*
build-armv7-unknown-linux-musleabihf-packages:
name: Build Vector for armv7-unknown-linux-musleabihf (.tar.gz)
runs-on: release-builder-linux
timeout-minutes: 60
needs: generate-publish-metadata
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
VECTOR_BUILD_DESC: ${{ needs.generate-publish-metadata.outputs.vector_build_desc }}
CHANNEL: ${{ needs.generate-publish-metadata.outputs.vector_release_channel }}
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Bootstrap runner environment (Ubuntu-specific)
run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh
- name: Bootstrap runner environment (generic)
run: bash scripts/environment/prepare.sh
- name: Build Vector
env:
DOCKER_PRIVILEGED: "true"
run: make package-armv7-unknown-linux-musleabihf
- name: Stage package artifacts for publish
uses: actions/upload-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-armv7-unknown-linux-musleabihf
path: target/artifacts/vector*
build-arm-unknown-linux-gnueabi-packages:
name: Build Vector for arm-unknown-linux-gnueabi (.tar.gz)
runs-on: release-builder-linux
timeout-minutes: 60
needs: generate-publish-metadata
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
VECTOR_BUILD_DESC: ${{ needs.generate-publish-metadata.outputs.vector_build_desc }}
CHANNEL: ${{ needs.generate-publish-metadata.outputs.vector_release_channel }}
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Bootstrap runner environment (Ubuntu-specific)
run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh
- name: Bootstrap runner environment (generic)
run: bash scripts/environment/prepare.sh
- name: Build Vector
env:
DOCKER_PRIVILEGED: "true"
run: make package-arm-unknown-linux-gnueabi-all
- name: Stage package artifacts for publish
uses: actions/upload-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-arm-unknown-linux-gnueabi
path: target/artifacts/vector*
build-arm-unknown-linux-musleabi-packages:
name: Build Vector for arm-unknown-linux-musleabi (.tar.gz)
runs-on: release-builder-linux
needs: generate-publish-metadata
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
VECTOR_BUILD_DESC: ${{ needs.generate-publish-metadata.outputs.vector_build_desc }}
CHANNEL: ${{ needs.generate-publish-metadata.outputs.vector_release_channel }}
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Bootstrap runner environment (Ubuntu-specific)
run: sudo -E bash scripts/environment/bootstrap-ubuntu-20.04.sh
- name: Bootstrap runner environment (generic)
run: bash scripts/environment/prepare.sh
- name: Build Vector
env:
DOCKER_PRIVILEGED: "true"
run: make package-arm-unknown-linux-musleabi
- name: Stage package artifacts for publish
uses: actions/upload-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-arm-unknown-linux-musleabi
path: target/artifacts/vector*
build-x86_64-apple-darwin-packages:
name: Build Vector for x86_64-apple-darwin (.tar.gz)
runs-on: macos-latest-xlarge
timeout-minutes: 90
needs: generate-publish-metadata
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
VECTOR_BUILD_DESC: ${{ needs.generate-publish-metadata.outputs.vector_build_desc }}
CHANNEL: ${{ needs.generate-publish-metadata.outputs.vector_release_channel }}
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Bootstrap runner environment (macOS-specific)
run: bash scripts/environment/bootstrap-macos.sh
- name: Build Vector
env:
TARGET: "x86_64-apple-darwin"
NATIVE_BUILD: true
run: |
export PATH="$HOME/.cargo/bin:$PATH"
make package
- name: Stage package artifacts for publish
uses: actions/upload-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin
path: target/artifacts/vector*
build-x86_64-pc-windows-msvc-packages:
name: Build Vector for x86_64-pc-windows-msvc (.zip)
runs-on: release-builder-windows-2022
timeout-minutes: 90
needs: generate-publish-metadata
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
VECTOR_BUILD_DESC: ${{ needs.generate-publish-metadata.outputs.vector_build_desc }}
CHANNEL: ${{ needs.generate-publish-metadata.outputs.vector_release_channel }}
RUSTFLAGS: "-D warnings -Ctarget-feature=+crt-static"
RELEASE_BUILDER: "true"
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Bootstrap runner environment (Windows-specific)
run: .\scripts\environment\bootstrap-windows-2022.ps1
- name: Install Wix
shell: bash
run: |
mkdir -p /c/wix
cd /c/wix
curl -sSfL https://github.com/wixtoolset/wix3/releases/download/wix3141rtm/wix314-binaries.zip > wix-binaries.zip
unzip -o wix-binaries.zip
rm wix-binaries.zip
- name: Build Vector
shell: bash
run: |
export FEATURES="default-msvc"
export ARCHIVE_TYPE="zip"
export KEEP_SYMBOLS="true"
export RUST_LTO=""
export TARGET="x86_64-pc-windows-msvc"
export NATIVE_BUILD="true"
make package
- name: Build MSI package
shell: bash
run: |
export PATH="/c/wix:$PATH"
./scripts/package-msi.sh
- name: Stage package artifacts for publish
uses: actions/upload-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-pc-windows-msvc
path: target/artifacts/vector*
deb-verify:
name: Verify DEB Packages
runs-on: ubuntu-20.04
timeout-minutes: 5
needs:
- generate-publish-metadata
- build-x86_64-unknown-linux-gnu-packages
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
DD_PKG_VERSION: "latest"
strategy:
matrix:
container:
- ubuntu:20.04
- ubuntu:22.04
- ubuntu:24.04
- debian:10
- debian:11
- debian:12
container:
image: ${{ matrix.container }}
steps:
- run: |
apt-get update && \
apt-get install -y \
ca-certificates \
curl \
git \
systemd \
make
- name: Install dd-pkg for linting
run: |
curl -sSL "https://dd-package-tools.s3.amazonaws.com/dd-pkg/${DD_PKG_VERSION}/dd-pkg_Linux_x86_64.tar.gz" | tar -xz -C /usr/local/bin dd-pkg
- name: Fix Git safe directories issue when in containers (actions/checkout#760)
run: git config --global --add safe.directory /__w/vector/vector
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Download staged package artifacts (x86_64-unknown-linux-gnu)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-unknown-linux-gnu
path: target/artifacts
- name: Verify install of DEB package.
run: |
./scripts/verify-install.sh target/artifacts/vector_${{ env.VECTOR_VERSION }}-1_amd64.deb
rpm-verify:
name: Verify RPM Packages
runs-on: ubuntu-20.04
timeout-minutes: 5
needs:
- generate-publish-metadata
- build-x86_64-unknown-linux-gnu-packages
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
DD_PKG_VERSION: "latest"
strategy:
matrix:
container:
- "quay.io/centos/centos:stream9"
- "amazonlinux:2023"
- "fedora:39"
- "fedora:40"
container:
image: ${{ matrix.container }}
steps:
- run: |
yum update -y
yum install -y \
ca-certificates \
git \
systemd \
tar \
make
# conflicts with curl-minimal on some distros and --allowerased is not
# supported on some distros
if ! command -v curl &> /dev/null ; then
yum install -y curl
fi
- name: Install dd-pkg for linting
run: |
curl -sSL "https://dd-package-tools.s3.amazonaws.com/dd-pkg/${DD_PKG_VERSION}/dd-pkg_Linux_x86_64.tar.gz" | tar -xz -C /usr/local/bin dd-pkg
- name: Fix Git safe directories issue when in containers (actions/checkout#760)
run: git config --global --add safe.directory /__w/vector/vector
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Download staged package artifacts (x86_64-unknown-linux-gnu)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-unknown-linux-gnu
path: target/artifacts
- name: Verify install of RPM package.
run: |
./scripts/verify-install.sh target/artifacts/vector-${{ env.VECTOR_VERSION }}-1.x86_64.rpm
macos-verify:
name: Verify macOS Package
runs-on: ${{ matrix.runner }}
timeout-minutes: 5
needs:
- generate-publish-metadata
- build-x86_64-apple-darwin-packages
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
strategy:
matrix:
runner: [macos-14, macos-15]
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Download staged package artifacts (x86_64-apple-darwin)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin
path: target/artifacts
- name: Verify macOS package
run: |
tar -xvf target/artifacts/vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin.tar.gz && vector-x86_64-apple-darwin/bin/vector --version
publish-docker:
name: Publish to Docker
runs-on: ubuntu-20.04
timeout-minutes: 15
needs:
- generate-publish-metadata
- build-aarch64-unknown-linux-gnu-packages
- build-aarch64-unknown-linux-musl-packages
- build-x86_64-unknown-linux-gnu-packages
- build-x86_64-unknown-linux-musl-packages
- build-armv7-unknown-linux-musleabihf-packages
- build-armv7-unknown-linux-gnueabihf-packages
- build-arm-unknown-linux-gnueabi-packages
- build-arm-unknown-linux-musleabi-packages
- deb-verify
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
VECTOR_BUILD_DESC: ${{ needs.generate-publish-metadata.outputs.vector_build_desc }}
CHANNEL: ${{ needs.generate-publish-metadata.outputs.vector_release_channel }}
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.CI_DOCKER_USERNAME }}
password: ${{ secrets.CI_DOCKER_PASSWORD }}
- name: Set up QEMU
uses: docker/[email protected]
with:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/[email protected]
with:
version: latest
install: true
- name: Download staged package artifacts (aarch64-unknown-linux-gnu)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-aarch64-unknown-linux-gnu
path: target/artifacts
- name: Download staged package artifacts (aarch64-unknown-linux-musl)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-aarch64-unknown-linux-musl
path: target/artifacts
- name: Download staged package artifacts (x86_64-unknown-linux-gnu)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-unknown-linux-gnu
path: target/artifacts
- name: Download staged package artifacts (x86_64-unknown-linux-musl)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-unknown-linux-musl
path: target/artifacts
- name: Download staged package artifacts (armv7-unknown-linux-gnueabihf)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-armv7-unknown-linux-gnueabihf
path: target/artifacts
- name: Download staged package artifacts (armv7-unknown-linux-musleabihf)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-armv7-unknown-linux-musleabihf
path: target/artifacts
- name: Download staged package artifacts (arm-unknown-linux-gnueabi)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-arm-unknown-linux-gnueabi
path: target/artifacts
- name: Download staged package artifacts (arm-unknown-linux-musleabi)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-arm-unknown-linux-musleabi
path: target/artifacts
- name: Build and publish Docker images
env:
PLATFORM: "linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6"
uses: nick-fields/retry@v3
with:
timeout_minutes: 15
max_attempts: 3
retry_wait_seconds: 60
command: make release-docker
publish-s3:
name: Publish to S3
runs-on: ubuntu-20.04
timeout-minutes: 10
needs:
- generate-publish-metadata
- build-x86_64-unknown-linux-gnu-packages
- build-x86_64-unknown-linux-musl-packages
- build-aarch64-unknown-linux-musl-packages
- build-aarch64-unknown-linux-gnu-packages
- build-x86_64-apple-darwin-packages
- build-x86_64-pc-windows-msvc-packages
- build-armv7-unknown-linux-musleabihf-packages
- build-armv7-unknown-linux-gnueabihf-packages
- build-arm-unknown-linux-gnueabi-packages
- build-arm-unknown-linux-musleabi-packages
- deb-verify
- rpm-verify
- macos-verify
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
CHANNEL: ${{ needs.generate-publish-metadata.outputs.vector_release_channel }}
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Download staged package artifacts (aarch64-unknown-linux-gnu)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-aarch64-unknown-linux-gnu
path: target/artifacts
- name: Download staged package artifacts (aarch64-unknown-linux-musl)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-aarch64-unknown-linux-musl
path: target/artifacts
- name: Download staged package artifacts (x86_64-unknown-linux-gnu)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-unknown-linux-gnu
path: target/artifacts
- name: Download staged package artifacts (x86_64-unknown-linux-musl)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-unknown-linux-musl
path: target/artifacts
- name: Download staged package artifacts (x86_64-apple-darwin)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin
path: target/artifacts
- name: Download staged package artifacts (x86_64-pc-windows-msvc)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-pc-windows-msvc
path: target/artifacts
- name: Download staged package artifacts (armv7-unknown-linux-gnueabihf)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-armv7-unknown-linux-gnueabihf
path: target/artifacts
- name: Download staged package artifacts (armv7-unknown-linux-musleabihf)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-armv7-unknown-linux-musleabihf
path: target/artifacts
- name: Download staged package artifacts (arm-unknown-linux-gnueabi)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-arm-unknown-linux-gnueabi
path: target/artifacts
- name: Download staged package artifacts (arm-unknown-linux-musleabi)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-arm-unknown-linux-musleabi
path: target/artifacts
- name: Publish artifacts to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.CI_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CI_AWS_SECRET_ACCESS_KEY }}
run: make release-s3
publish-github:
name: Publish to GitHub
# We only publish to GitHub for versioned releases, not nightlies.
if: inputs.channel == 'release'
runs-on: ubuntu-20.04
timeout-minutes: 10
needs:
- generate-publish-metadata
- build-x86_64-unknown-linux-gnu-packages
- build-x86_64-unknown-linux-musl-packages
- build-aarch64-unknown-linux-musl-packages
- build-aarch64-unknown-linux-gnu-packages
- build-x86_64-apple-darwin-packages
- build-x86_64-pc-windows-msvc-packages
- build-armv7-unknown-linux-gnueabihf-packages
- build-armv7-unknown-linux-musleabihf-packages
- build-arm-unknown-linux-gnueabi-packages
- build-arm-unknown-linux-musleabi-packages
- deb-verify
- rpm-verify
- macos-verify
- generate-sha256sum
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Download staged package artifacts (aarch64-unknown-linux-gnu)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-aarch64-unknown-linux-gnu
path: target/artifacts
- name: Download staged package artifacts (aarch64-unknown-linux-musl)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-aarch64-unknown-linux-musl
path: target/artifacts
- name: Download staged package artifacts (x86_64-unknown-linux-gnu)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-unknown-linux-gnu
path: target/artifacts
- name: Download staged package artifacts (x86_64-unknown-linux-musl)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-unknown-linux-musl
path: target/artifacts
- name: Download staged package artifacts (x86_64-apple-darwin)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin
path: target/artifacts
- name: Download staged package artifacts (x86_64-pc-windows-msvc)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-pc-windows-msvc
path: target/artifacts
- name: Download staged package artifacts (armv7-unknown-linux-gnueabihf)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-armv7-unknown-linux-gnueabihf
path: target/artifacts
- name: Download staged package artifacts (armv7-unknown-linux-musleabihf)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-armv7-unknown-linux-musleabihf
path: target/artifacts
- name: Download artifact checksums
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-SHA256SUMS
path: target/artifacts
- name: Download staged package artifacts (arm-unknown-linux-gnueabi)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-arm-unknown-linux-gnueabi
path: target/artifacts
- name: Download staged package artifacts (arm-unknown-linux-musleabi)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-arm-unknown-linux-musleabi
path: target/artifacts
- name: Publish release to GitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make release-github
publish-homebrew:
name: Publish to Homebrew
# We only publish to Homebrew for versioned releases, not nightlies.
if: inputs.channel == 'release'
runs-on: ubuntu-20.04
timeout-minutes: 10
needs:
- generate-publish-metadata
- publish-s3
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Publish update to Homebrew tap
env:
GITHUB_TOKEN: ${{ secrets.GH_PACKAGE_PUBLISHER_TOKEN }}
run: make release-homebrew
generate-sha256sum:
name: Generate SHA256 checksums
runs-on: ubuntu-20.04
timeout-minutes: 5
needs:
- generate-publish-metadata
- build-x86_64-unknown-linux-gnu-packages
- build-x86_64-unknown-linux-musl-packages
- build-aarch64-unknown-linux-musl-packages
- build-aarch64-unknown-linux-gnu-packages
- build-x86_64-apple-darwin-packages
- build-x86_64-pc-windows-msvc-packages
- build-armv7-unknown-linux-gnueabihf-packages
- build-armv7-unknown-linux-musleabihf-packages
- build-arm-unknown-linux-gnueabi-packages
- build-arm-unknown-linux-musleabi-packages
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Download staged package artifacts (aarch64-unknown-linux-gnu)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-aarch64-unknown-linux-gnu
path: target/artifacts
- name: Download staged package artifacts (aarch64-unknown-linux-musl)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-aarch64-unknown-linux-musl
path: target/artifacts
- name: Download staged package artifacts (x86_64-unknown-linux-gnu)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-unknown-linux-gnu
path: target/artifacts
- name: Download staged package artifacts (x86_64-unknown-linux-musl)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-unknown-linux-musl
path: target/artifacts
- name: Download staged package artifacts (x86_64-apple-darwin)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin
path: target/artifacts
- name: Download staged package artifacts (x86_64-pc-windows-msvc)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-pc-windows-msvc
path: target/artifacts
- name: Download staged package artifacts (armv7-unknown-linux-gnueabihf)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-armv7-unknown-linux-gnueabihf
path: target/artifacts
- name: Download staged package artifacts (armv7-unknown-linux-musleabihf)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-armv7-unknown-linux-musleabihf
path: target/artifacts
- name: Download staged package artifacts (arm-unknown-linux-gnueabi)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-arm-unknown-linux-gnueabi
path: target/artifacts
- name: Download staged package artifacts (arm-unknown-linux-musleabi)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-arm-unknown-linux-musleabi
path: target/artifacts
- name: Generate SHA256 checksums for artifacts
run: make sha256sum
- name: Stage checksum for publish
uses: actions/upload-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-SHA256SUMS
path: target/artifacts/vector-${{ env.VECTOR_VERSION }}-SHA256SUMS