forked from bityuan/bityuan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
41 lines (32 loc) · 954 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
34
35
36
37
38
39
40
41
version: "{build}"
# Source Config
os: Visual Studio 2019
clone_folder: c:\gopath\src\github.com\bityuan\bityuan
# Build host
environment:
GOPATH: c:\gopath
DEPTESTBYPASS501: 1
#init:
# - git config --global core.autocrlf input
# Build
install:
# Install the specific Go version.
- set PATH=C:\go116\bin;%PATH%
- set GOROOT=C:\go116
- go version
- go env
# to check the where is mingw64 in env
- dir C:\
- dir C:\mingw-w64\
- dir C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\
- dir C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64
# - choco install bzr
- set Path=C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin;C:\Program Files (x86)\Bazaar\;C:\Program Files\Mercurial\;%Path%
- gcc --version
- set path
build: false
deploy: false
test_script:
- go env -w CGO_ENABLED=1
- go build -buildmode=exe -o bityuan.exe
- go build -buildmode=exe -o bityuan-cli.exe github.com/bityuan/bityuan/cli