Repository navigation
596 lines (579 loc) · 22 KB
/
Copy pathpublish.yml
File metadata and controls
596 lines (579 loc) · 22 KB
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
name: Publish
permissions:
contents: read
on:
workflow_dispatch:
inputs:
git_ref:
description: "Git ref to build (branch, tag, or SHA)"
type: string
required: false
channel:
description: "Release channel (release/nightly/custom)"
type: string
default: custom
skip_publish:
description: "Build and verify only. Skip publishing to Docker, S3, and GitHub"
type: boolean
default: false
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
skip_publish:
description: "Build and verify only. Skip publishing to Docker, S3, and GitHub"
type: boolean
default: false
env:
VERBOSE: true
CI: true
DISABLE_MOLD: true
DEBIAN_FRONTEND: noninteractive
CONTAINER_TOOL: docker
CHANNEL: ${{ inputs.channel }}
jobs:
generate-publish-metadata:
name: Generate Publish-related Metadata
runs-on: ubuntu-24.04
timeout-minutes: 15
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.git_ref }}
- uses: ./.github/actions/setup
with:
vdev: true
- name: Generate publish metadata
id: generate-publish-metadata
run: make ci-generate-publish-metadata
build-linux-gnu-native:
name: Build Vector for ${{ matrix.target }} (native)
runs-on: ${{ matrix.runner }}
container:
image: almalinux:8@sha256:ca871b110064fe81bff0250ed5cc56fbb0a9840715f09811c33bbf9d72cef56c
# Align HOME with the container's root user so rustup/sudo don't warn
# about $HOME (/github/home) differing from the euid-obtained home (/root).
env:
HOME: /root
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 }}
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
runner: ubuntu-24.04-8core
- target: aarch64-unknown-linux-gnu
runner: ubuntu-24.04-8core-arm
steps:
- name: Install system dependencies
run: |
dnf install -y --setopt=install_weak_deps=False \
gcc gcc-c++ make cmake perl perl-IPC-Cmd \
openssl-devel cyrus-sasl-devel zlib-devel \
pkgconfig clang \
rpm-build sudo \
git tar gzip xz which findutils \
curl unzip
# TODO: generate the .deb description once in generate-publish-metadata and consume as an artifact, so all builders share the same output and this source build can go away.
- name: Build cmark-gfm from source
env:
CMARK_GFM_TAG: "0.29.0.gfm.13"
CMARK_GFM_SHA: "587a12bb54d95ac37241377e6ddc93ea0e45439b"
run: |
git clone --depth 1 --branch "$CMARK_GFM_TAG" https://github.com/github/cmark-gfm.git /tmp/cmark-gfm
actual_sha="$(git -C /tmp/cmark-gfm rev-parse HEAD)"
if [ "$actual_sha" != "$CMARK_GFM_SHA" ]; then
echo "::error::cmark-gfm tag $CMARK_GFM_TAG resolved to $actual_sha, expected $CMARK_GFM_SHA"
exit 1
fi
cmake -S /tmp/cmark-gfm -B /tmp/cmark-gfm/build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib64
cmake --build /tmp/cmark-gfm/build -j "$(nproc)"
cmake --install /tmp/cmark-gfm/build
ldconfig
rm -rf /tmp/cmark-gfm
cmark-gfm --version
- name: Checkout Vector
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.git_ref }}
- uses: ./.github/actions/setup
with:
rust: true
cargo-deb: true
protoc: true
- name: Build Vector
run: make NATIVE=true package-${{ matrix.target }}-all
- name: Stage package artifacts for publish
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: vector-${{ env.VECTOR_VERSION }}-${{ matrix.target }}
path: target/artifacts/vector*
build-linux-cross:
name: Build Vector for ${{ matrix.target }}
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 }}
strategy:
matrix:
include:
- target: x86_64-unknown-linux-musl # .tar.gz
- target: aarch64-unknown-linux-musl # .tar.gz
- target: armv7-unknown-linux-gnueabihf # .tar.gz, .deb, .rpm
- target: armv7-unknown-linux-musleabihf # .tar.gz
- target: arm-unknown-linux-gnueabi # .tar.gz, .deb
- target: arm-unknown-linux-musleabi # .tar.gz
steps:
- name: Checkout Vector
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.git_ref }}
- uses: ./.github/actions/setup
with:
rust: true
cross: true
cargo-deb: true
protoc: true
libsasl2: true
cmark-gfm: true
cross-binutils: true
rpm: ${{ endsWith(matrix.target, '-linux-gnu') || matrix.target == 'armv7-unknown-linux-gnueabihf' }}
- name: Build Vector
run: make package-${{ matrix.target }}-all
- name: Stage package artifacts for publish
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: vector-${{ env.VECTOR_VERSION }}-${{ matrix.target }}
path: target/artifacts/vector*
build-apple-darwin-packages:
name: Build Vector for ${{ matrix.architecture }}-apple-darwin (.tar.gz)
runs-on: ${{ matrix.runner }}
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 }}
strategy:
matrix:
include:
# Refer to https://docs.github.com/en/actions/using-github-hosted-runners/using-larger-runners/about-larger-runners#about-macos-larger-runners.
# and to https://github.com/actions/runner-images
- architecture: arm64
runner: macos-14-xlarge
steps:
- name: Verify Runner Architecture
run: |
ARCH=$(uname -m)
echo "Detected architecture: $ARCH"
if [ "$ARCH" != "${{ matrix.architecture }}" ]; then
echo "Error: Expected ${{ matrix.architecture }} architecture, but got $ARCH!"
exit 1
fi
- name: Checkout Vector
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.git_ref }}
- uses: ./.github/actions/setup
with:
rust: true
protoc: true
- name: Build Vector
env:
TARGET: "${{ matrix.architecture }}-apple-darwin"
NATIVE_BUILD: true
FEATURES: "target-aarch64-apple-darwin"
run: |
export PATH="$HOME/.cargo/bin:$PATH"
make package
- name: Stage package artifacts for publish
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: vector-${{ env.VECTOR_VERSION }}-${{ matrix.architecture }}-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: windows-2025-8core
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 }}
RELEASE_BUILDER: "true"
steps:
- name: Checkout Vector
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.git_ref }}
- name: Bootstrap runner environment (Windows-specific)
run: .\scripts\environment\bootstrap-windows-2025.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"
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@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-pc-windows-msvc
path: target/artifacts/vector*
deb-verify:
name: Verify DEB Packages
runs-on: ${{ matrix.runner }}
timeout-minutes: 5
needs:
- generate-publish-metadata
- build-linux-gnu-native
- build-linux-cross
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
DD_PKG_VERSION: "latest"
strategy:
matrix:
runner:
- ubuntu-24.04
- ubuntu-24.04-arm
container:
- ubuntu:20.04
- ubuntu:22.04
- ubuntu:24.04
- debian:12
- debian:13
container:
image: ${{ matrix.container }}
steps:
- run: |
timeout 30m apt-get -o Acquire::Retries=5 -o Acquire::http::Timeout=30 update && \
timeout 30m apt-get -o Acquire::Retries=5 -o Acquire::http::Timeout=30 install -y \
ca-certificates \
curl \
git \
systemd \
make
- name: Install dd-pkg for linting
run: |
ARCH=$(uname -m)
case "$ARCH" in aarch64) ARCH_DL=arm64 ;; *) ARCH_DL="$ARCH" ;; esac
curl -sSL "https://dd-package-tools.s3.amazonaws.com/dd-pkg/${DD_PKG_VERSION}/dd-pkg_Linux_${ARCH_DL}.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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.git_ref }}
- name: Set artifact name
run: echo "ARTIFACT=$(uname -m)-unknown-linux-gnu" >> "$GITHUB_ENV"
- name: Download staged package artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: vector-${{ env.VECTOR_VERSION }}-${{ env.ARTIFACT }}
path: target/artifacts
- name: Verify install of DEB package.
run: |
./scripts/verify-install.sh target/artifacts/*.deb
rpm-verify:
name: Verify RPM Packages
runs-on: ${{ matrix.runner }}
timeout-minutes: 10
needs:
- generate-publish-metadata
- build-linux-gnu-native
- build-linux-cross
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
DD_PKG_VERSION: "latest"
strategy:
matrix:
runner:
- ubuntu-24.04
- ubuntu-24.04-arm
container:
# Lowest supported glibc tier (EL8 family, glibc 2.28). Catches glibc-floor regressions.
- "almalinux:8@sha256:ca871b110064fe81bff0250ed5cc56fbb0a9840715f09811c33bbf9d72cef56c"
- "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: |
ARCH=$(uname -m)
case "$ARCH" in aarch64) ARCH_DL=arm64 ;; *) ARCH_DL="$ARCH" ;; esac
curl -sSL "https://dd-package-tools.s3.amazonaws.com/dd-pkg/${DD_PKG_VERSION}/dd-pkg_Linux_${ARCH_DL}.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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.git_ref }}
- name: Set artifact name
run: echo "ARTIFACT=$(uname -m)-unknown-linux-gnu" >> "$GITHUB_ENV"
- name: Download staged package artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: vector-${{ env.VECTOR_VERSION }}-${{ env.ARTIFACT }}
path: target/artifacts
- name: Verify install of RPM package.
run: |
./scripts/verify-install.sh target/artifacts/*.rpm
macos-verify:
name: Verify macOS Package
runs-on: ${{ matrix.runner }}
timeout-minutes: 5
needs:
- generate-publish-metadata
- build-apple-darwin-packages
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
strategy:
matrix:
include:
# Refer to https://github.com/actions/runner-images
- target: arm64-apple-darwin
runner: macos-14
steps:
- name: Checkout Vector
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.git_ref }}
- name: Download staged package artifacts (${{ matrix.target }})
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: vector-${{ env.VECTOR_VERSION }}-${{ matrix.target }}
path: target/artifacts
- name: Verify macOS package
run: |
tar -xvf target/artifacts/vector-${{ env.VECTOR_VERSION }}-${{ matrix.target }}.tar.gz \
&& vector-${{ matrix.target }}/bin/vector --version
publish-docker:
name: Publish to Docker
if: ${{ !inputs.skip_publish }}
runs-on: ubuntu-24.04
timeout-minutes: 15
# Elevated permission required to push Docker images to GitHub Container Registry
permissions:
packages: write
needs:
- generate-publish-metadata
- build-linux-gnu-native
- build-linux-cross
- 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.git_ref }}
- name: Login to DockerHub
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
username: ${{ secrets.CI_DOCKER_USERNAME }}
password: ${{ secrets.CI_DOCKER_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4.4.0
with:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
with:
version: latest
- name: Download all Linux package artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: vector-${{ env.VECTOR_VERSION }}-*-linux-*
path: target/artifacts
merge-multiple: true
- uses: ./.github/actions/setup
with:
vdev: true
- name: Build and publish Docker images
env:
PLATFORM: "linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6"
REPOS: "timberio/vector,ghcr.io/vectordotdev/vector"
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4.0.0
with:
timeout_minutes: 15
max_attempts: 3
retry_wait_seconds: 60
command: make release-docker
publish-s3:
name: Publish to S3
if: ${{ !inputs.skip_publish }}
runs-on: ubuntu-24.04
timeout-minutes: 10
permissions:
contents: read
id-token: write
needs:
- generate-publish-metadata
- build-linux-gnu-native
- build-linux-cross
- build-apple-darwin-packages
- build-x86_64-pc-windows-msvc-packages
- deb-verify
- rpm-verify
- macos-verify
- generate-sha256sum
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.git_ref }}
- uses: ./.github/actions/setup
with:
vdev: true
- name: Configure credentials for COSE release artifacts
uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
with:
role-to-assume: arn:aws:iam::486234852809:role/vector-release-publisher-github-actions
aws-region: us-east-1
- name: Download all package artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: vector-${{ env.VECTOR_VERSION }}-*
path: target/artifacts
merge-multiple: true
- name: Publish artifacts to S3
env:
LEGACY_AWS_ACCESS_KEY_ID: ${{ secrets.CI_AWS_ACCESS_KEY_ID }}
LEGACY_AWS_SECRET_ACCESS_KEY: ${{ secrets.CI_AWS_SECRET_ACCESS_KEY }}
run: make release-s3
publish-github:
name: Publish release to GitHub
# We only publish to GitHub for versioned releases, not nightlies.
if: ${{ !inputs.skip_publish && inputs.channel == 'release' }}
runs-on: ubuntu-24.04
timeout-minutes: 10
# Elevated permission required to create GitHub releases and upload release assets
permissions:
contents: write
needs:
- generate-publish-metadata
- build-linux-gnu-native
- build-linux-cross
- build-apple-darwin-packages
- build-x86_64-pc-windows-msvc-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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.git_ref }}
- uses: ./.github/actions/setup
with:
vdev: true
cue: true
- name: Download all package artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: vector-${{ env.VECTOR_VERSION }}-*
path: target/artifacts
merge-multiple: true
- name: Publish release to GitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make release-github
generate-sha256sum:
name: Generate SHA256 checksums
runs-on: ubuntu-24.04
timeout-minutes: 5
needs:
- generate-publish-metadata
- build-linux-gnu-native
- build-linux-cross
- build-apple-darwin-packages
- build-x86_64-pc-windows-msvc-packages
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
steps:
- name: Checkout Vector
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.git_ref }}
- name: Download all package artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: vector-${{ env.VECTOR_VERSION }}-*
path: target/artifacts
merge-multiple: true
- name: Generate SHA256 checksums for artifacts
run: make sha256sum
- name: Stage checksum for publish
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: vector-${{ env.VECTOR_VERSION }}-SHA256SUMS
path: target/artifacts/vector-${{ env.VECTOR_VERSION }}-SHA256SUMS