1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
835 B
YAML

os: Visual Studio 2019
stack: go 1.20
version: 7.{build}
8 years ago
platform: x64
clone_folder: c:\gopath\src\github.com\rqlite\rqlite
environment:
GOPATH: c:\gopath
install:
- set BUILD_ENV=gnu
- if %BUILD_ENV%==gnu set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin\;%PATH%
- if %BUILD_ENV%==gnu set MSYSTEM=MINGW64
- if %BUILD_ENV%==gnu set MSYS=winsymlinks=lnk
build_script:
- set LINKER_PKG_PATH=github.com/rqlite/rqlite/cmd
- go version
- go get ./...
- go test -failfast ./...
- go install -ldflags="-X %LINKER_PKG_PATH%.Branch=%APPVEYOR_REPO_BRANCH% -X %LINKER_PKG_PATH%.Commit=%APPVEYOR_REPO_COMMIT%" ./...
after_build:
- 7z a rqlite-latest-win64.zip %GOPATH%\bin\rq*.exe
artifacts:
- path: rqlite-%APPVEYOR_REPO_BRANCH%-latest-win64.zip
name: rqlite for Windows x64