forked from yggdrasil-network/yggdrasil-go
-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
35 lines (30 loc) · 1.03 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
version: '{build}'
pull_requests:
do_not_increment_build_number: true
os: Visual Studio 2022
shallow_clone: false
environment:
MSYSTEM: MINGW64
MSYS2_PATH_TYPE: inherit
CHERE_INVOKING: enabled_from_arguments
GO111MODULE: on
GOPATH: c:\gopath
stack: go 1.19
build_script:
- cmd: >-
cd %APPVEYOR_BUILD_FOLDER%
##### MinGW build
- set OPT_PATH=C:\msys64\mingw32\bin;C:\msys64\mingw64\bin;
- set PATH=%GOPATH%\bin;%OPT_PATH%%PATH%
- go install github.com/tc-hib/go-winres@latest
- go install github.com/swaggo/swag/cmd/swag@latest
- swag init -g src/restapi/rest_server.go --ot yaml -o contrib/ui/mesh-ui/ui/doc
- c:\msys64\usr\bin\bash -lc "./contrib/msi/build-msi.sh x64"
- c:\msys64\usr\bin\bash -lc "./contrib/msi/build-msi.sh x86"
- c:\msys64\usr\bin\bash -lc "./contrib/msi/build-msi-gui.sh x64"
- c:\msys64\usr\bin\bash -lc "./contrib/msi/build-msi-gui.sh x86"
- c:\msys64\usr\bin\bash -lc "./contrib/msi/build-msi-ie.sh x64"
- c:\msys64\usr\bin\bash -lc "./contrib/msi/build-msi-ie.sh x86"
test: off
artifacts:
- path: '*.msi'