File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,24 @@ environment:
10
10
GOPATH : C:\gopath
11
11
BINDIR : bin
12
12
# download dev build
13
- BUNDLEURL : https://gin.g-node.org/achilleas/gin-cli-builds/raw/master/gin-cli-latest-windows-386.zip
13
+ BUNDLEREPO : https://web. gin.g-node.org/achilleas/gin-cli-builds/raw/master
14
14
GIN_LOG_DIR : C:\gin-log
15
15
16
+ matrix :
17
+ # 32-bit
18
+ - arch : " 386"
19
+
20
+ # 64-bit
21
+ - arch : " amd64"
22
+
23
+
16
24
17
25
install :
18
26
- set PATH=C:\Python37-x64\;%PATH%;%GOPATH%\bin;c:\gin-bundle\git\usr\bin
19
27
# download latest stable gin-cli-windows-bundle
20
28
- md c:\gin-bundle
21
29
- cd c:\gin-bundle
22
- - ps : Invoke-WebRequest -URI $env:BUNDLEURL -OutFile "gin-cli-bundle.zip"
30
+ - ps : Invoke-WebRequest -URI $env:BUNDLEREPO/gin-cli-latest-windows-$env:arch.zip -OutFile "gin-cli-bundle.zip"
23
31
- 7z x gin-cli-bundle.zip
24
32
- git-annex version
25
33
# go stuff
@@ -44,6 +52,7 @@ build_script:
44
52
- go get github.com/alecthomas/template
45
53
- go get github.com/dustin/go-humanize
46
54
- go vet ./...
55
+ - set GOARCH=%arch%
47
56
- go build -ldflags "-X main.gincliversion=APPVEYOR-%APPVEYOR_REPO_NAME%-%APPVEYOR_REPO_BRANCH% -X main.build=%APPVEYOR_BUILD_NUMBER% -X main.commit=%APPVEYOR_REPO_COMMIT%" -o %GOPATH%\bin\gin.exe .
48
57
49
58
before_test :
You can’t perform that action at this time.
0 commit comments