Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Junior <[email protected]>
  • Loading branch information
ffmjunior authored Apr 3, 2023
1 parent 92cf617 commit 32e97c5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,17 @@ jobs:
# goversioninfo.exe -ver-major $Env:VERSION_PARTS[0] -ver-minor $Env:VERSION_PARTS[1] -ver-patch $Env:VERSION_PARTS[2] -product-version $Env:EXPORTER_VER -platform-specific
goversioninfo.exe -ver-major $Env:VERSION_PARTS[0] -ver-minor 1 -ver-patch $Env:VERSION_PARTS[2] -product-version $Env:EXPORTER_VER -platform-specific
& 'C:\Program Files (x86)\GnuWin32\bin\make.exe' crossbuild
#& 'C:\Program Files (x86)\GnuWin32\bin\make.exe' crossbuild
# '+' symbols are invalid characters in image tags
(Get-Content -Path VERSION) -replace '\+', '_' | Set-Content -Path VERSION
& 'C:\Program Files (x86)\GnuWin32\bin\make.exe' build-all
#(Get-Content -Path VERSION) -replace '\+', '_' | Set-Content -Path VERSION
# & 'C:\Program Files (x86)\GnuWin32\bin\make.exe' build-all
# GH requires all files to have different names, so add version/arch to differentiate
foreach($Arch in "amd64", "arm64","386") {
Move-Item output\$Arch\windows_exporter.exe output\windows_exporter-$Version-$Arch.exe
}
#foreach($Arch in "amd64", "arm64","386") {
# Move-Item output\$Arch\windows_exporter.exe output\windows_exporter-$Version-$Arch.exe
#}
promu.exe build -v
Move-Item .\windows_exporter.exe .\windows_exporter-$Version.exe
- name: Upload Artifacts
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 32e97c5

Please sign in to comment.