-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathappveyor.yml
More file actions
51 lines (42 loc) · 1.19 KB
/
appveyor.yml
File metadata and controls
51 lines (42 loc) · 1.19 KB
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
platform: x64
matrix:
fast_finish: true
environment:
GOPATH: c:\gopath
clone_folder: c:\gopath\src\github.com\alphasoc\nfr
install:
# install winpcap dev
- appveyor DownloadFile http://www.winpcap.org/install/bin/WpdPack_4_1_2.zip
- 7z x .\WpdPack_4_1_2.zip -oc:\
# install winpcap - testing requires it
- choco install winpcap
cache:
- C:\tools\mingw64
test_script:
- go test -v ./...
build_script:
# AppVeyor installed mingw is 32-bit only so install 64-bit version.
- ps: >-
if(!(Test-Path "C:\tools\mingw64")) {
cinst mingw > mingw-install.txt
Push-AppveyorArtifact mingw-install.txt
}
- set PATH=C:\tools\mingw64\bin;%PATH%
- ps: |
$version = git describe
go build -o nfr-windows-amd64.exe -ldflags "-X github.com/alphasoc/nfr/version.Version=$version"
artifacts:
- path: nfr-windows-amd64.exe
name: exe
deploy:
- release: $(APPVEYOR_REPO_TAG_NAME)
provider: GitHub
auth_token:
secure: EjLxBojyCRGndhLcI/FWddpdjCjCzZdJctIIG/hXC6zqXg7VrpyJlfZHsTjEB6Xk
artifact: exe
force_update: true
draft: false
prerelease: false
on:
branch: /^v[0-9]+\.[0-9]+\.[0-9]+$/
appveyor_repo_tag: true