forked from rqlite/rqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
33 lines (24 loc) · 824 Bytes
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
os: Visual Studio 2019
stack: go 1.23
version: 8.{build}
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 env
- 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-latest-win64.zip
name: rqlite for Windows x64