-
Notifications
You must be signed in to change notification settings - Fork 13
/
appveyor.yml
49 lines (40 loc) · 1.1 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
version: v0-winbuild-{build}
build: off
clone_folder: c:\gopath\src\github.com\cosmo0920\fluent-bit-go-s3
environment:
matrix:
- GOPATH: c:\gopath
PATH: C:\msys64\mingw64\bin\;%PATH%
PLATFORM: win64
GOARCH: amd64
GOROOT: c:\go
- GOPATH: c:\gopath
PATH: C:\msys64\mingw32\bin\;%PATH%
PLATFORM: win32
GOROOT: c:\go-x86
GOARCH: 386
stack: go 1.13
before_test:
- set GOARCH=%GOARCH%
- set PATH=%GOROOT%\bin;C:\%GOPATH%\bin;%PATH%
- go vet ./...
test_script:
- go test ./... -v
- go build -buildmode=c-shared -o out_s3.dll .
- 7z a fluent-bit-go-s3-%PLATFORM%.zip out_s3.dll
- set ARTIFACT=fluent-bit-go-s3-%PLATFORM%.zip
on_success:
- ps: Push-AppveyorArtifact $Env:ARTIFACT
artifacts:
- path: fluent-bit-go-s3-*.zip
name: binary
deploy:
provider: GitHub
auth_token:
secure: 7XdoaFISgIXPlmVTNkMMS5cOhQzCQ06N1ksjNsres/dAyMYbT8CTxnV9KgHabwww
artifact: binary # upload zip archive to release assets
draft: false
prerelease: false
force_update: true
on:
appveyor_repo_tag: true # deploy on tag push only