@@ -266,16 +266,32 @@ jobs:
266
266
name : vector-${{ env.VECTOR_VERSION }}-arm-unknown-linux-musleabi
267
267
path : target/artifacts/vector*
268
268
269
- build-x86_64- apple-darwin-packages :
270
- name : Build Vector for x86_64 -apple-darwin (.tar.gz)
271
- runs-on : macos-latest-large
269
+ build-apple-darwin-packages :
270
+ name : Build Vector for ${{ matrix.architecture }} -apple-darwin (.tar.gz)
271
+ runs-on : ${{ matrix.runner }}
272
272
timeout-minutes : 90
273
273
needs : generate-publish-metadata
274
274
env :
275
275
VECTOR_VERSION : ${{ needs.generate-publish-metadata.outputs.vector_version }}
276
276
VECTOR_BUILD_DESC : ${{ needs.generate-publish-metadata.outputs.vector_build_desc }}
277
277
CHANNEL : ${{ needs.generate-publish-metadata.outputs.vector_release_channel }}
278
+ strategy :
279
+ matrix :
280
+ include :
281
+ # Refer to https://docs.github.com/en/actions/using-github-hosted-runners/using-larger-runners/about-larger-runners#about-macos-larger-runners.
282
+ - architecture : x86_64
283
+ runner : macos-latest-large
284
+ - architecture : arm64
285
+ runner : macos-latest-xlarge
278
286
steps :
287
+ - name : Verify Runner Architecture
288
+ run : |
289
+ ARCH=$(uname -m)
290
+ echo "Detected architecture: $ARCH"
291
+ if [ "$ARCH" != "${{ matrix.architecture }}" ]; then
292
+ echo "Error: Expected ${{ matrix.architecture }} architecture, but got $ARCH!"
293
+ exit 1
294
+ fi
279
295
- name : Checkout Vector
280
296
uses : actions/checkout@v4
281
297
with :
@@ -284,17 +300,18 @@ jobs:
284
300
run : bash scripts/environment/bootstrap-macos.sh
285
301
- name : Build Vector
286
302
env :
287
- TARGET : " x86_64 -apple-darwin"
303
+ TARGET : " ${{ matrix.architecture }} -apple-darwin"
288
304
NATIVE_BUILD : true
289
305
run : |
290
306
export PATH="$HOME/.cargo/bin:$PATH"
291
307
make package
292
308
- name : Stage package artifacts for publish
293
309
uses : actions/upload-artifact@v4
294
310
with :
295
- name : vector-${{ env.VECTOR_VERSION }}-x86_64 -apple-darwin
311
+ name : vector-${{ env.VECTOR_VERSION }}-${{ matrix.architecture }} -apple-darwin
296
312
path : target/artifacts/vector*
297
313
314
+
298
315
build-x86_64-pc-windows-msvc-packages :
299
316
name : Build Vector for x86_64-pc-windows-msvc (.zip)
300
317
runs-on : release-builder-windows-2022
@@ -443,26 +460,34 @@ jobs:
443
460
444
461
macos-verify :
445
462
name : Verify macOS Package
446
- runs-on : macos-latest-large
463
+ runs-on : ${{ matrix.runner }}
447
464
timeout-minutes : 5
448
465
needs :
449
466
- generate-publish-metadata
450
- - build-x86_64- apple-darwin-packages
467
+ - build-apple-darwin-packages
451
468
env :
452
469
VECTOR_VERSION : ${{ needs.generate-publish-metadata.outputs.vector_version }}
470
+ strategy :
471
+ matrix :
472
+ include :
473
+ - target : x86_64-apple-darwin
474
+ runner : macos-latest-large
475
+ - target : arm64-apple-darwin
476
+ runner : macos-latest-xlarge
453
477
steps :
454
478
- name : Checkout Vector
455
479
uses : actions/checkout@v4
456
480
with :
457
481
ref : ${{ inputs.git_ref }}
458
- - name : Download staged package artifacts (x86_64-apple-darwin )
482
+ - name : Download staged package artifacts (${{ matrix.target }} )
459
483
uses : actions/download-artifact@v4
460
484
with :
461
- name : vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin
485
+ name : vector-${{ env.VECTOR_VERSION }}-${{ matrix.target }}
462
486
path : target/artifacts
463
487
- name : Verify macOS package
464
488
run : |
465
- tar -xvf target/artifacts/vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin.tar.gz && vector-x86_64-apple-darwin/bin/vector --version
489
+ tar -xvf target/artifacts/vector-${{ env.VECTOR_VERSION }}-${{ matrix.target }}.tar.gz \
490
+ && vector-${{ matrix.target }}/bin/vector --version
466
491
467
492
publish-docker :
468
493
name : Publish to Docker
@@ -563,7 +588,7 @@ jobs:
563
588
- build-x86_64-unknown-linux-musl-packages
564
589
- build-aarch64-unknown-linux-musl-packages
565
590
- build-aarch64-unknown-linux-gnu-packages
566
- - build-x86_64- apple-darwin-packages
591
+ - build-apple-darwin-packages
567
592
- build-x86_64-pc-windows-msvc-packages
568
593
- build-armv7-unknown-linux-musleabihf-packages
569
594
- build-armv7-unknown-linux-gnueabihf-packages
@@ -605,6 +630,11 @@ jobs:
605
630
with :
606
631
name : vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin
607
632
path : target/artifacts
633
+ - name : Download staged package artifacts (arm64-apple-darwin)
634
+ uses : actions/download-artifact@v4
635
+ with :
636
+ name : vector-${{ env.VECTOR_VERSION }}-arm64-apple-darwin
637
+ path : target/artifacts
608
638
- name : Download staged package artifacts (x86_64-pc-windows-msvc)
609
639
uses : actions/download-artifact@v4
610
640
with :
@@ -648,7 +678,7 @@ jobs:
648
678
- build-x86_64-unknown-linux-musl-packages
649
679
- build-aarch64-unknown-linux-musl-packages
650
680
- build-aarch64-unknown-linux-gnu-packages
651
- - build-x86_64- apple-darwin-packages
681
+ - build-apple-darwin-packages
652
682
- build-x86_64-pc-windows-msvc-packages
653
683
- build-armv7-unknown-linux-gnueabihf-packages
654
684
- build-armv7-unknown-linux-musleabihf-packages
@@ -690,6 +720,11 @@ jobs:
690
720
with :
691
721
name : vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin
692
722
path : target/artifacts
723
+ - name : Download staged package artifacts (arm64-apple-darwin)
724
+ uses : actions/download-artifact@v4
725
+ with :
726
+ name : vector-${{ env.VECTOR_VERSION }}-arm64-apple-darwin
727
+ path : target/artifacts
693
728
- name : Download staged package artifacts (x86_64-pc-windows-msvc)
694
729
uses : actions/download-artifact@v4
695
730
with :
@@ -756,7 +791,7 @@ jobs:
756
791
- build-x86_64-unknown-linux-musl-packages
757
792
- build-aarch64-unknown-linux-musl-packages
758
793
- build-aarch64-unknown-linux-gnu-packages
759
- - build-x86_64- apple-darwin-packages
794
+ - build-apple-darwin-packages
760
795
- build-x86_64-pc-windows-msvc-packages
761
796
- build-armv7-unknown-linux-gnueabihf-packages
762
797
- build-armv7-unknown-linux-musleabihf-packages
@@ -794,6 +829,11 @@ jobs:
794
829
with :
795
830
name : vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin
796
831
path : target/artifacts
832
+ - name : Download staged package artifacts (arm64-apple-darwin)
833
+ uses : actions/download-artifact@v4
834
+ with :
835
+ name : vector-${{ env.VECTOR_VERSION }}-arm64-apple-darwin
836
+ path : target/artifacts
797
837
- name : Download staged package artifacts (x86_64-pc-windows-msvc)
798
838
uses : actions/download-artifact@v4
799
839
with :
0 commit comments