Skip to content

Commit

Permalink
Merge pull request #227 from supercollider/appveyor/deploy-gh
Browse files Browse the repository at this point in the history
appveyor: add artifacts and github deployment
  • Loading branch information
Nathan Ho authored Nov 18, 2018
2 parents 4e3530b + 2904031 commit 63a5f76
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,31 @@ before_build:
- cd build

build_script:
- cmake -G "%CMAKE_GENERATOR%" -DSC_PATH=../../supercollider -DFFTW3F_INCLUDE_DIR=../fftw -DFFTW3F_LIBRARY=../fftw/libfftw3f-3.lib ..
- cmake -G "%CMAKE_GENERATOR%" -DSC_PATH=../../supercollider -DFFTW3F_INCLUDE_DIR=../fftw -DFFTW3F_LIBRARY=../fftw/libfftw3f-3.lib -DCMAKE_INSTALL_PREFIX="%APPVEYOR_BUILD_FOLDER%/build/install" ..
- cmake --build . --target install --config %CMAKE_CONFIGURATION%

# TODO
# artifacts:
# - path: artifacts
# name: art_folder
after_build:
# create archive name; either the version (if tagged) or commit hash
- ps: |
if (Test-Path env:APPVEYOR_REPO_TAG_NAME) {
$env:VERSION_SLUG=$env:APPVEYOR_REPO_TAG_NAME | % { $_ -replace "Version-","" }
$env:ZIP_NAME="sc3-plugins-$env:VERSION_SLUG-Windows-$env:ARCH-VS.zip"
} else {
$env:ZIP_NAME="sc3-plugins-$env:APPVEYOR_REPO_COMMIT-Windows-$env:ARCH-VS.zip"
}
- ps: 7z a -mx7 $env:ZIP_NAME install

artifacts:
- path: build/%ZIP_NAME%
name: Plugins

# TODO
# github releases - only tags
# - provider: GitHub
# description: appveyor_$(APPVEYOR_REPO_TAG_NAME)
# artifact: installer
# auth_token:
# secure: rxXJNY+6n25Th9R4+7qI+AcnTj0wCAMSnBGH2+5s7DlVLrAGsSY6+EEDbeHWGGeI
# prerelease: true
# on:
# appveyor_repo_tag: true
deploy:
- provider: GitHub
description: appveyor_$(APPVEYOR_REPO_TAG_NAME)
artifact: Plugins
auth_token:
secure: 4uMFrJ2Vc3ju6OtWpQ9chRce/2JHNhfy/sjX+w+KFTNDvmSPD5CqdEuwFp/+Ln/s
prerelease: true
on:
appveyor_repo_tag: true

0 comments on commit 63a5f76

Please sign in to comment.