mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-02 00:26:35 +00:00
Merge pull request #48 from martinlindhe/x86-builds
This commit is contained in:
16
appveyor.yml
16
appveyor.yml
@@ -4,12 +4,17 @@ os: Windows Server 2012 R2
|
|||||||
|
|
||||||
environment:
|
environment:
|
||||||
GOPATH: c:\gopath
|
GOPATH: c:\gopath
|
||||||
|
matrix:
|
||||||
|
- MSI_ARCH: amd64
|
||||||
|
GOARCH: amd64
|
||||||
|
- MSI_ARCH: x86
|
||||||
|
GOARCH: 386
|
||||||
|
|
||||||
clone_folder: c:\gopath\src\github.com\martinlindhe\wmi_exporter
|
clone_folder: c:\gopath\src\github.com\martinlindhe\wmi_exporter
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- go version
|
- go version
|
||||||
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
|
- set PATH=%GOPATH%\bin;c:\go\bin;%GOPATH%\bin\windows_%GOARCH%;%PATH%
|
||||||
- go get -u github.com/kardianos/govendor
|
- go get -u github.com/kardianos/govendor
|
||||||
- go get -u github.com/prometheus/promu
|
- go get -u github.com/prometheus/promu
|
||||||
- choco install gitversion.portable -y
|
- choco install gitversion.portable -y
|
||||||
@@ -23,13 +28,16 @@ build_script:
|
|||||||
# 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
|
||||||
$Version = $env:APPVEYOR_REPO_TAG_NAME -replace '^v?([0-9\.]+).*$','$1'
|
$Version = $env:APPVEYOR_REPO_TAG_NAME -replace '^v?([0-9\.]+).*$','$1'
|
||||||
Write-Verbose "Setting msi version to $Version"
|
Write-Verbose "Setting msi version to $Version"
|
||||||
.\installer\build.ps1 -PathToExecutable .\wmi_exporter.exe -Version $Version -Arch "amd64"
|
.\installer\build.ps1 -PathToExecutable .\wmi_exporter.exe -Version $Version -Arch "$env:MSI_ARCH"
|
||||||
Push-AppveyorArtifact installer\Output\wmi_exporter-$Version-amd64.msi -DeploymentName Installer
|
Push-AppveyorArtifact installer\Output\wmi_exporter-$Version-$env:MSI_ARCH.msi -DeploymentName Installer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
after_build:
|
||||||
|
- 7z a wmi_exporter-%MSI_ARCH%.zip wmi_exporter.exe
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- name: Executable
|
- name: Executable
|
||||||
path: wmi_exporter.exe
|
path: 'wmi_exporter-*.zip'
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
- provider: GitHub
|
- provider: GitHub
|
||||||
|
|||||||
Reference in New Issue
Block a user