forked from pgaskin/easy-novnc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
47 lines (37 loc) · 1.43 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
image: ubuntu
# stack: go 1.14
version: '{build}'
cache:
- go1.14.deb
install:
- 'if [[ $APPVEYOR_REPO_TAG == "true" ]]; then appveyor UpdateBuild -Version "$(git describe --tags --always)"; else appveyor UpdateBuild -Version "$(git rev-parse --short HEAD)"; fi'
- 'wget --no-clobber -O go1.14.deb https://deb.geek1011.net/pool/main/g/go/go_1.14-godeb1_amd64.deb || true'
- sudo dpkg -i go1.14.deb
- go mod download
build_script:
- go test -v ./...
- GOOS=windows GOARCH=386 go build -o easy-novnc_windows.exe .
- GOOS=darwin GOARCH=amd64 go build -o easy-novnc_darwin-64bit .
- GOOS=linux GOARCH=386 go build -o easy-novnc_linux-32bit .
- GOOS=linux GOARCH=amd64 go build -o easy-novnc_linux-64bit .
- GOOS=linux GOARCH=arm go build -o easy-novnc_linux-arm .
- GOOS=windows GOARCH=386 go build -o wstcp_windows.exe ./wstcp
- GOOS=darwin GOARCH=amd64 go build -o wstcp_darwin-64bit ./wstcp
- GOOS=linux GOARCH=386 go build -o wstcp_linux-32bit ./wstcp
- GOOS=linux GOARCH=amd64 go build -o wstcp_linux-64bit ./wstcp
- GOOS=linux GOARCH=arm go build -o wstcp_linux-arm ./wstcp
test: off
artifacts:
- path: easy-novnc_*
- path: wstcp_*
deploy:
release: $(APPVEYOR_BUILD_VERSION)
provider: GitHub
auth_token:
secure: oMHoA3qAfCcz3PsfBJmce+fKcSOtUF1cTC3RUj1qKT4J4BjbkOcawazIrXR4F1eb
artifact: /.+/
draft: true
prerelease: false
on:
branch: master
APPVEYOR_REPO_TAG: true