-
Notifications
You must be signed in to change notification settings - Fork 59
/
appveyor.yml
56 lines (42 loc) · 1.18 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: "{build}"
# Source Config
clone_folder: c:\gopath\src\github.com\cristianoliveira\ergo
# Build host
environment:
GOPATH: c:\gopath
image: Visual Studio 2022
init:
- git config --global core.autocrlf input
# Build
install:
- set PATH=C:\go122;%PATH%
- go version
- go env
build: false
build_script:
- go build -ldflags "-w -s -X main.VERSION=$(appveyor_repo_tag_name)" -o bin/ergo.exe
- choco install 7zip
- 7z a -tzip bin/ergo-$(appveyor_repo_tag_name)-win.zip bin/ergo.exe
# before_deploy:
# - go build
# - choco install 7zip
# - echo "%APPVEYOR_REPO_TAG_NAME% - ${appveyor_repo_tag_name}"
# - 7z a -tzip ergo-win.zip c:\gopath\src\github.com\cristianoliveira\ergo\*.exe
artifacts:
- path: bin/ergo.exe
type: zip
- path: bin/ergo-$(appveyor_repo_tag_name)-win.zip
type: zip
deploy:
release: $(appveyor_repo_tag_name)
provider: GitHub
auth_token:
secure: "XlXg6r5idqW5O3qBiQHbZ73goavVOVKYaZx11GW7s8DO+M0/ERBImmXa4TAHbSOj"
draft: false
prerelease: false
on:
# branch: master # release from master branch only
appveyor_repo_tag: true
test_script:
- ps: .\make.ps1 -test
- ps: .\make.ps1 -test_integration