-
Notifications
You must be signed in to change notification settings - Fork 29
/
appveyor.yml
33 lines (28 loc) · 973 Bytes
/
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
build: off
clone_folder: c:\gopath\src\github.com\wellington\go-libsass
environment:
GOPATH: c:\gopath
stack: go 1.10.0
install:
- ps: |
# Install MinGW.
$url = "https://bintray.com/artifact/download/drewwells/generic/x86_64-5.1.0-release-win32-seh-rt_v4-rev0.7z"
$strFileName="C:\mingw64\bin\mingw32-make.exe"
If (Test-Path $strFileName){
Write-Host "Using cached mingw64"
}Else{
Write-Host "Fetching mingw64"
Invoke-WebRequest -UserAgent wget -Uri $url -OutFile ming32-64.7z
&7z x -oC:\ ming32-64.7z > $null
}
- set CC=gcc
- set CXX=g++
# why is this necessary
- set PATH=%PATH%;C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin
- echo %PATH%
- echo %GOPATH%
- dir C:\mingw-w64
- dir C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64
- dir C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin
build_script:
- go build -x -ldflags "-extldflags '-static'"