mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-21 20:26:36 +00:00
Merge pull request #1055 from breed808/arm64_builds
Add ARM64 builds to releases
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -148,7 +148,7 @@ jobs:
|
|||||||
(Get-Content -Path VERSION) -replace '\+', '_' | Set-Content -Path VERSION
|
(Get-Content -Path VERSION) -replace '\+', '_' | Set-Content -Path VERSION
|
||||||
make build-all
|
make build-all
|
||||||
# GH requires all files to have different names, so add version/arch to differentiate
|
# GH requires all files to have different names, so add version/arch to differentiate
|
||||||
foreach($Arch in "amd64","386") {
|
foreach($Arch in "amd64", "arm64","386") {
|
||||||
Move-Item output\$Arch\windows_exporter.exe output\windows_exporter-$Version-$Arch.exe
|
Move-Item output\$Arch\windows_exporter.exe output\windows_exporter-$Version-$Arch.exe
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -166,7 +166,7 @@ jobs:
|
|||||||
$TagName = $env:GITHUB_REF -replace 'refs/tags/', ''
|
$TagName = $env:GITHUB_REF -replace 'refs/tags/', ''
|
||||||
# The MSI version is not semver compliant, so just take the numerical parts
|
# The MSI version is not semver compliant, so just take the numerical parts
|
||||||
$MSIVersion = $TagName -replace '^v?([0-9\.]+).*$','$1'
|
$MSIVersion = $TagName -replace '^v?([0-9\.]+).*$','$1'
|
||||||
foreach($Arch in "amd64","386") {
|
foreach($Arch in "amd64", "arm64","386") {
|
||||||
Write-Verbose "Building windows_exporter $MSIVersion msi for $Arch"
|
Write-Verbose "Building windows_exporter $MSIVersion msi for $Arch"
|
||||||
.\installer\build.ps1 -PathToExecutable .\output\windows_exporter-$BuildVersion-$Arch.exe -Version $MSIVersion -Arch "$Arch"
|
.\installer\build.ps1 -PathToExecutable .\output\windows_exporter-$BuildVersion-$Arch.exe -Version $MSIVersion -Arch "$Arch"
|
||||||
Move-Item installer\Output\windows_exporter-$MSIVersion-$Arch.msi output\
|
Move-Item installer\Output\windows_exporter-$MSIVersion-$Arch.msi output\
|
||||||
|
|||||||
1
Makefile
1
Makefile
@@ -40,6 +40,7 @@ crossbuild:
|
|||||||
# The prometheus/golang-builder image for promu crossbuild doesn't exist
|
# The prometheus/golang-builder image for promu crossbuild doesn't exist
|
||||||
# on Windows, so for now, we'll just build twice
|
# on Windows, so for now, we'll just build twice
|
||||||
GOARCH=amd64 promu build --prefix=output/amd64
|
GOARCH=amd64 promu build --prefix=output/amd64
|
||||||
|
GOARCH=arm64 promu build --prefix=output/arm64
|
||||||
GOARCH=386 promu build --prefix=output/386
|
GOARCH=386 promu build --prefix=output/386
|
||||||
|
|
||||||
build-image: crossbuild
|
build-image: crossbuild
|
||||||
|
|||||||
Reference in New Issue
Block a user