Skip to content

Commit

Permalink
add appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
l3uddz committed Feb 15, 2020
1 parent 31ed47a commit 2c61ff3
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: 1.0.{build}

image:
- Ubuntu1804
- macOS

platform: x64

branches:
only:
- master
- develop

deploy:
- provider: GitHub
auth_token:
secure: japCKJyRSrHvPJV0hqZZGcRM9ZSR9GsTVh8SCCwbqiyuKTyB3OCcRMc6ICztczfV
artifact: mediarr
force_update: true
on:
branch: master
APPVEYOR_REPO_TAG: true

# no need for caching as it does not appear to work right now
#cache:
# - vendor -> go.mod, appveyor.yml

artifacts:
- path: dist/**/*.tar.tgz
name: mediarr

environment:
GO111MODULE: on

install:
- go version
- go env

before_build:
- |-
if [ ${APPVEYOR_REPO_TAG} = "true" ]; then
export VERSION=${APPVEYOR_REPO_TAG_NAME}
fi
build_script:
- make build

after_build:
- |-
export build=$(find dist/* -type d | sed 's!.*/!!')
cd dist/$build
tar -czf $build.tar.tgz mediarr
cd ../..

0 comments on commit 2c61ff3

Please sign in to comment.