File tree Expand file tree Collapse file tree 1 file changed +24
-14
lines changed Expand file tree Collapse file tree 1 file changed +24
-14
lines changed Original file line number Diff line number Diff line change @@ -54,21 +54,31 @@ before_build:
54
54
- cd build
55
55
56
56
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" ..
58
58
- cmake --build . --target install --config %CMAKE_CONFIGURATION%
59
59
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
64
74
65
- # TODO
66
75
# 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
You can’t perform that action at this time.
0 commit comments