-
Notifications
You must be signed in to change notification settings - Fork 35
/
appveyor.yml
56 lines (45 loc) · 1.44 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
# Appveyor file
# http://www.appveyor.com/docs/appveyor-yml
#---------------------------------#
# general configuration #
#---------------------------------#
image:
- Visual Studio 2019
branches:
except:
- gh-pages
#---------------------------------#
# environment configuration #
#---------------------------------#
clone_folder: C:\Users\appveyor\go\src\github.com\nyaosorg\nyagos
environment:
global:
dest_dir: bin
gopath: C:\Users\appveyor\go
goroot: C:\go120
matrix:
- platform: i386
- platform: amd64
install:
#- rd C:\Go /s /q
#- appveyor DownloadFile https://dl.google.com/go/go1.12.windows-386.zip
#- 7z x go1.12.windows-386.zip -oC:\ >nul
- set "INSTALLDIR=%APPVEYOR_BUILD_FOLDER%\%DEST_DIR%\%PLATFORM%"
- set "PATH=C:\msys64\mingw64\bin;C:\go120\bin;%PATH%"
- set "GOARCH=%PLATFORM:i386=386%"
- mkdir "%INSTALLDIR%" > nul 2>&1
#---------------------------------#
# build configuration #
#---------------------------------#
build_script:
#- where go.exe
#- C:\go120\bin\go.exe version
- mingw32-make GO=C:\go120\bin\go.exe
- mingw32-make GO=C:\go120\bin\go.exe test
- ps: .\install.ps1 $env:INSTALLDIR
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: $(DEST_DIR)\$(PLATFORM)
name: nyagos-$(PLATFORM)-$(APPVEYOR_BUILD_VERSION)