|
|
|
@ -35,28 +35,8 @@ steps:
|
|
|
|
|
displayName: 'Set up the Go workspace'
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
go get github.com/mitchellh/gox
|
|
|
|
|
|
|
|
|
|
v="$(git describe --tags)"
|
|
|
|
|
|
|
|
|
|
output="{{.Dir}}-{{.OS}}-{{.Arch}}-$v"
|
|
|
|
|
osarch="!darwin/arm !darwin/arm64 !darwin/386"
|
|
|
|
|
|
|
|
|
|
echo "Compiling:"
|
|
|
|
|
|
|
|
|
|
os="windows linux darwin"
|
|
|
|
|
arch="amd64 386 arm arm64 mips mips64 mipsle mips64le"
|
|
|
|
|
pushd cmd/ck-client || exit 1
|
|
|
|
|
gox -ldflags "-X main.version=${v}" -os="$os" -arch="$arch" -osarch="$osarch" -output="$output"
|
|
|
|
|
GOOS="linux" GOARCH="mips" GOMIPS="softfloat" go build -ldflags "-X main.version=${v}" -o ck-client-linux-mips_softfloat-"${v}"
|
|
|
|
|
GOOS="linux" GOARCH="mipsle" GOMIPS="softfloat" go build -ldflags "-X main.version=${v}" -o ck-client-linux-mipsle_softfloat-"${v}"
|
|
|
|
|
mv ck-client-* $(Build.ArtifactStagingDirectory)/
|
|
|
|
|
|
|
|
|
|
os="linux"
|
|
|
|
|
arch="amd64 386 arm arm64"
|
|
|
|
|
pushd ../ck-server || exit 1
|
|
|
|
|
gox -ldflags "-X main.version=${v}" -os="$os" -arch="$arch" -osarch="$osarch" -output="$output"
|
|
|
|
|
mv ck-server-* $(Build.ArtifactStagingDirectory)/
|
|
|
|
|
v="$(git describe --tags)" ./release.sh
|
|
|
|
|
mv ./release/* $(Build.ArtifactStagingDirectory)/
|
|
|
|
|
workingDirectory: '$(modulePath)'
|
|
|
|
|
displayName: 'Get dependencies, then build'
|
|
|
|
|
|
|
|
|
@ -81,4 +61,4 @@ steps:
|
|
|
|
|
#isPreRelease: false # Optional
|
|
|
|
|
addChangeLog: false # Optional
|
|
|
|
|
#compareWith: 'lastFullRelease' # Required when addChangeLog == True. Options: lastFullRelease, lastRelease, lastReleaseByTag
|
|
|
|
|
#releaseTag: # Required when compareWith == LastReleaseByTag
|
|
|
|
|
#releaseTag: # Required when compareWith == LastReleaseByTag
|
|
|
|
|