Skip to content

Commit

Permalink
added arm packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Jan 8, 2024
1 parent 2443985 commit 2379b91
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 7 deletions.
24 changes: 20 additions & 4 deletions .buildkite/filebeat/filebeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ steps:
# if: build.env("BUILDKITE_PULL_REQUEST") != "false"
#
# steps:
# - label: ":linux:-ARM Unit Tests"
# - label: ":linux: ARM64 Unit Tests"
# key: "arm-extended"
# if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "filebeat for arm" || build.env("GITHUB_PR_LABELS") =~ /.*arm.*/
# command:
Expand All @@ -90,7 +90,7 @@ steps:
# provider: "orka"
# imagePrefix: "generic-13-ventura-x64"
#
# - label: ":windows:- {{IMAGE_WIN_2019}} Unit Tests"
# - label: ":windows: Win 2019 Unit Tests"
# key: "win-extended-2019"
# command: ".buildkite/filebeat/scripts/unit-tests-win.ps1"
# agents:
Expand All @@ -109,11 +109,27 @@ steps:
key: "package-linux-x86"
command:
- "sudo apt-get update"
# - "sudo apt-get install -y libsystemd-dev"
# - "sudo apt install -y python3-pip"
- "sudo apt-get install -y python3-venv"
- ".buildkite/filebeat/scripts/package.sh"
agents:
provider: "gcp"
image: "${IMAGE_UBUNTU_X86_64}"

- label: ":linux: Packaging Linux ARM"
key: "package-linux-arm"
env:
GOOS: "linux"
# GOARCH: "arm64"
# PLATFORM: "linux/arm64"
# PLATFORMS: "linux/arm64"
GOARCH: "amd64"
PLATFORMS: "linux/amd64"
command:
- "sudo apt-get update"
- "sudo apt-get install -y python3-venv"
- ".buildkite/filebeat/scripts/package.sh"
agents:
provider: "aws"
imagePrefix: "${IMAGE_UBUNTU_ARM_64}"
instanceType: "t4g.large"

1 change: 1 addition & 0 deletions .buildkite/filebeat/scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ with_mage

echo ":: Start Packaging ::"
cd filebeat
umask 0022
mage package
11 changes: 8 additions & 3 deletions .buildkite/filebeat/scripts/unit-tests-win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,18 @@ function installGoDependencies() {
}

fixCRLF

$ErrorActionPreference = "Continue" # set +e

Set-Location -Path filebeat
New-Item -ItemType Directory -Force -Path "build"
withGolang
installGoDependencies

$ErrorActionPreference = "Continue" # set +e
$oldUmask = $ExecutionContext.SessionState.LanguageMode
$ExecutionContext.SessionState.LanguageMode = "NoLanguage"
$ExecutionContext.SessionState.LanguageMode = $oldUmask

#New-Item -ItemType Directory -Force -Path "build"
Set-Location filebeat
mage build unitTest

$EXITCODE=$LASTEXITCODE
Expand Down

0 comments on commit 2379b91

Please sign in to comment.