Skip to content

Commit 63a5f76

Browse files
author
Nathan Ho
authored
Merge pull request supercollider#227 from supercollider/appveyor/deploy-gh
appveyor: add artifacts and github deployment
2 parents 4e3530b + 2904031 commit 63a5f76

File tree

1 file changed

+24
-14
lines changed

1 file changed

+24
-14
lines changed

.appveyor.yml

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,31 @@ before_build:
5454
- cd build
5555

5656
build_script:
57-
- cmake -G "%CMAKE_GENERATOR%" -DSC_PATH=../../supercollider -DFFTW3F_INCLUDE_DIR=../fftw -DFFTW3F_LIBRARY=../fftw/libfftw3f-3.lib ..
57+
- 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" ..
5858
- cmake --build . --target install --config %CMAKE_CONFIGURATION%
5959

60-
# TODO
61-
# artifacts:
62-
# - path: artifacts
63-
# name: art_folder
60+
after_build:
61+
# create archive name; either the version (if tagged) or commit hash
62+
- ps: |
63+
if (Test-Path env:APPVEYOR_REPO_TAG_NAME) {
64+
$env:VERSION_SLUG=$env:APPVEYOR_REPO_TAG_NAME | % { $_ -replace "Version-","" }
65+
$env:ZIP_NAME="sc3-plugins-$env:VERSION_SLUG-Windows-$env:ARCH-VS.zip"
66+
} else {
67+
$env:ZIP_NAME="sc3-plugins-$env:APPVEYOR_REPO_COMMIT-Windows-$env:ARCH-VS.zip"
68+
}
69+
- ps: 7z a -mx7 $env:ZIP_NAME install
70+
71+
artifacts:
72+
- path: build/%ZIP_NAME%
73+
name: Plugins
6474

65-
# TODO
6675
# github releases - only tags
67-
# - provider: GitHub
68-
# description: appveyor_$(APPVEYOR_REPO_TAG_NAME)
69-
# artifact: installer
70-
# auth_token:
71-
# secure: rxXJNY+6n25Th9R4+7qI+AcnTj0wCAMSnBGH2+5s7DlVLrAGsSY6+EEDbeHWGGeI
72-
# prerelease: true
73-
# on:
74-
# appveyor_repo_tag: true
76+
deploy:
77+
- provider: GitHub
78+
description: appveyor_$(APPVEYOR_REPO_TAG_NAME)
79+
artifact: Plugins
80+
auth_token:
81+
secure: 4uMFrJ2Vc3ju6OtWpQ9chRce/2JHNhfy/sjX+w+KFTNDvmSPD5CqdEuwFp/+Ln/s
82+
prerelease: true
83+
on:
84+
appveyor_repo_tag: true

0 commit comments

Comments
 (0)