File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -42,21 +42,15 @@ jobs:
4242 Expand-Archive -Path promu-$($Env:PROMU_VER).windows-amd64.zip -DestinationPath .
4343 Copy-Item -Path promu-$($Env:PROMU_VER).windows-amd64\promu.exe -Destination "$(go env GOPATH)\bin"
4444
45- # No binaries available so build from source
46- go install github.com/josephspurrier/goversioninfo/cmd/[email protected] 47- # GOPATH\bin dir must be added to PATH else the `promu` and `goversioninfo` commands won't be found
45+ # GOPATH\bin dir must be added to PATH else the `promu` commands won't be found
4846 echo "$(go env GOPATH)\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
4947
5048 - name : Build
5149 run : |
5250 $ErrorActionPreference = "Stop"
5351
5452 dotnet-gitversion /output json /showvariable FullSemVer | Set-Content VERSION -PassThru
55- $Version = Get-Content VERSION
56- # Windows versioninfo resources need the file version by parts (but product version is free text)
57- $VersionParts = ($Version -replace '^v?([0-9\.]+).*$','$1').Split(".")
58- goversioninfo.exe -ver-major $VersionParts[0] -ver-minor $VersionParts[1] -ver-patch $VersionParts[2] -product-version $Version -platform-specific
59-
53+
6054 make crossbuild
6155 # '+' symbols are invalid characters in image tags
6256 (Get-Content -Path VERSION) -replace '\+', '_' | Set-Content -Path VERSION
You can’t perform that action at this time.
0 commit comments