-
Notifications
You must be signed in to change notification settings - Fork 24
/
.appveyor.yml
71 lines (67 loc) · 2.42 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
platform:
- x86
environment:
APPVEYOR_OS_NAME: windows
GOPATH: c:\gopath
CGO_ENABLED: 1
GOOS: windows
MSYS_PATH: c:\msys64
CGO_CFLAGS_ALLOW: -mthreads
matrix:
- MSYS2_ARCH: i686
MSYS2_BITS: 32
MSYSTEM: MINGW32
GOARCH: 386
- MSYS2_ARCH: x86_64
MSYS2_BITS: 64
MSYSTEM: MINGW64
GOARCH: amd64
clone_script:
- cmd: SET APPVEYOR_BUILD_FOLDER_ORIGINAL=%APPVEYOR_BUILD_FOLDER%
- cmd: SET APPVEYOR_BUILD_FOLDER=c:\gopath\src\github.com\dh1tw\remoteAudio
- cmd: git clone --recursive -q --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
- cmd: cd %APPVEYOR_BUILD_FOLDER%
- cmd: git checkout -qf %APPVEYOR_REPO_COMMIT%
- cmd: git submodule update --init --recursive
- cmd: git fetch --tags
- cmd: dir %APPVEYOR_BUILD_FOLDER%
install:
- cmd: ECHO %GOPATH%
- cmd: ECHO %GOROOT%
- cmd: ECHO %GOOS%
- cmd: ECHO %GOARCH%
- cmd: ECHO %PATH%
- cmd: go version
- cmd: go env
- .\ci\install-deps-windows.bat
- cmd: SET PATH=%PATH%;/c/gopath/bin;/c/gopath/bin/windows_386
- go get -v github.com/GeertJohan/go.rice
- go get -v github.com/GeertJohan/go.rice/rice
- go get -v github.com/gogo/protobuf/protoc-gen-gofast
- go get -v github.com/micro/protoc-gen-micro
- cmd: ECHO Generate Protobuf and go-micro adapter code
- '%MSYS_PATH%\usr\bin\bash -lc "cd /c/gopath/src/github.com/dh1tw/remoteAudio && protoc --proto_path=./icd --gofast_out=./sb_audio ./icd/audio.proto"'
- '%MSYS_PATH%\usr\bin\bash -lc "cd /c/gopath/src/github.com/dh1tw/remoteAudio && protoc --proto_path=./icd --micro_out=./sb_audio ./icd/audio.proto"'
- cmd: ECHO Get application dependencies
- '%MSYS_PATH%\usr\bin\bash -lc "cd /c/gopath/src/github.com/dh1tw/remoteAudio && go get -v ./..."'
build_script:
- '%MSYS_PATH%\usr\bin\bash -lc "cd /c/gopath/src/github.com/dh1tw/remoteAudio && make dist"'
after_build:
- .\ci\build-windows-bundle.bat
- cmd: dir
- cmd: dir release
artifacts:
- path: remoteAudio-%APPVEYOR_REPO_TAG_NAME%-%GOOS%-%GOARCH%.zip
name: remoteAudio-release
- path: remoteAudio-commit-%APPVEYOR_REPO_COMMIT%-%GOOS%-%GOARCH%.zip
name: remoteAudio-interim-build
deploy:
description: ''
provider: GitHub
auth_token:
secure: EsmVZ0GPjzHm7XAQytCGvAwalh9Q/XuW7MSzE7UGYQuoY9h8gV5eA8tc9KniaSF+
artifact: remoteAudio-release
draft: false
prerelease: false
on:
appveyor_repo_tag: true # deploy on tag push only