Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into docs/parse-duration
Browse files Browse the repository at this point in the history
  • Loading branch information
pront committed Jan 10, 2025
2 parents d75f7a9 + 68ee4f2 commit 27d5aae
Show file tree
Hide file tree
Showing 235 changed files with 1,581 additions and 589 deletions.
2 changes: 1 addition & 1 deletion .github/actions/spelling/patterns.txt
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ user:P@ssw0rd
/.+@base64/.+

# Ignore base64 encoded values in VRL examples (requires padding to avoid false positives)
"[A-Za-z0-9]*=="
"[A-Za-z0-9+\/]*=="

# ignore uuid_from_friendly_id argument
uuid_from_friendly_id!\(".*"\)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/protobuf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
# Run `git checkout`
- uses: actions/checkout@v4
# Install the `buf` CLI
- uses: bufbuild/buf-setup-action@v1.47.2
- uses: bufbuild/buf-setup-action@v1.48.0
# Perform breaking change detection against the `master` branch
- uses: bufbuild/[email protected]
with:
Expand Down
63 changes: 50 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,16 +266,32 @@ jobs:
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
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.
- architecture: x86_64
runner: macos-latest-large
- architecture: arm64
runner: macos-latest-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@v4
with:
Expand All @@ -284,17 +300,18 @@ jobs:
run: bash scripts/environment/bootstrap-macos.sh
- name: Build Vector
env:
TARGET: "x86_64-apple-darwin"
TARGET: "${{ matrix.architecture }}-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
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: release-builder-windows-2022
Expand Down Expand Up @@ -447,25 +464,30 @@ jobs:
timeout-minutes: 5
needs:
- generate-publish-metadata
- build-x86_64-apple-darwin-packages
- build-apple-darwin-packages
env:
VECTOR_VERSION: ${{ needs.generate-publish-metadata.outputs.vector_version }}
strategy:
matrix:
runner: [macos-14, macos-15]
include:
- target: x86_64-apple-darwin
runner: macos-latest-large
- target: arm64-apple-darwin
runner: macos-latest-xlarge
steps:
- name: Checkout Vector
uses: actions/checkout@v4
with:
ref: ${{ inputs.git_ref }}
- name: Download staged package artifacts (x86_64-apple-darwin)
- name: Download staged package artifacts (${{ matrix.target }})
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin
name: vector-${{ env.VECTOR_VERSION }}-${{ matrix.target }}
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
tar -xvf target/artifacts/vector-${{ env.VECTOR_VERSION }}-${{ matrix.target }}.tar.gz \
&& vector-${{ matrix.target }}/bin/vector --version
publish-docker:
name: Publish to Docker
Expand Down Expand Up @@ -566,7 +588,7 @@ jobs:
- 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-apple-darwin-packages
- build-x86_64-pc-windows-msvc-packages
- build-armv7-unknown-linux-musleabihf-packages
- build-armv7-unknown-linux-gnueabihf-packages
Expand Down Expand Up @@ -608,6 +630,11 @@ jobs:
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin
path: target/artifacts
- name: Download staged package artifacts (arm64-apple-darwin)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-arm64-apple-darwin
path: target/artifacts
- name: Download staged package artifacts (x86_64-pc-windows-msvc)
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -651,7 +678,7 @@ jobs:
- 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-apple-darwin-packages
- build-x86_64-pc-windows-msvc-packages
- build-armv7-unknown-linux-gnueabihf-packages
- build-armv7-unknown-linux-musleabihf-packages
Expand Down Expand Up @@ -693,6 +720,11 @@ jobs:
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin
path: target/artifacts
- name: Download staged package artifacts (arm64-apple-darwin)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-arm64-apple-darwin
path: target/artifacts
- name: Download staged package artifacts (x86_64-pc-windows-msvc)
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -759,7 +791,7 @@ jobs:
- 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-apple-darwin-packages
- build-x86_64-pc-windows-msvc-packages
- build-armv7-unknown-linux-gnueabihf-packages
- build-armv7-unknown-linux-musleabihf-packages
Expand Down Expand Up @@ -797,6 +829,11 @@ jobs:
with:
name: vector-${{ env.VECTOR_VERSION }}-x86_64-apple-darwin
path: target/artifacts
- name: Download staged package artifacts (arm64-apple-darwin)
uses: actions/download-artifact@v4
with:
name: vector-${{ env.VECTOR_VERSION }}-arm64-apple-darwin
path: target/artifacts
- name: Download staged package artifacts (x86_64-pc-windows-msvc)
uses: actions/download-artifact@v4
with:
Expand Down
Loading

0 comments on commit 27d5aae

Please sign in to comment.