Skip to content

Commit 9953963

Browse files
authored
Merge pull request #283 from supercollider/topic/appveyor-no-artifacts
appveyor: turn off artifacts, push to s3 directly
2 parents 571e101 + 103c650 commit 9953963

File tree

1 file changed

+35
-14
lines changed

1 file changed

+35
-14
lines changed

.appveyor.yml

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,25 @@ test: off
1616

1717
environment:
1818
CMAKE_CONFIGURATION: Release
19+
# XXX vvv TEMPORARY WORKAROUND DUE TO APPVEYOR ARTIFACT STORAGE LIMIT
20+
AWS_ACCESS_KEY_ID:
21+
secure: cUwCIb/EtpG3uAP48WylcMNxAh3yEbPNcQGPZDnh6go=
22+
AWS_SECRET_ACCESS_KEY:
23+
secure: 9n0lOPh/3hpwSEf1l0QySYngrgWYqplZozQ9ZJMxtDARIV5DIBn/NXttTfkh1Z3k
24+
# XXX ^^^ TEMPORARY WORKAROUND DUE TO APPVEYOR ARTIFACT STORAGE LIMIT
1925

2026
matrix:
2127
- CMAKE_GENERATOR: "Visual Studio 15 2017"
2228
FFTW_URL: ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll32.zip
2329
ARCH: "x86"
30+
S3_BUILDS_LOCATION: "builds/supercollider/sc3-plugins/win32"
2431
# https://www.appveyor.com/docs/lang/cpp/
2532
VCVARS_SCRIPT: "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Auxiliary/Build/vcvars32.bat"
2633

2734
- CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
2835
FFTW_URL: ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip
2936
ARCH: "x64"
37+
S3_BUILDS_LOCATION: "builds/supercollider/sc3-plugins/win64"
3038
VCVARS_SCRIPT: "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Auxiliary/Build/vcvars64.bat"
3139

3240
install:
@@ -69,17 +77,30 @@ after_build:
6977
}
7078
- ps: 7z a -mx7 $env:ZIP_NAME install
7179

72-
artifacts:
73-
- path: build/%ZIP_NAME%
74-
name: Plugins
75-
76-
# github releases - only tags
77-
deploy:
78-
- provider: GitHub
79-
description: appveyor_$(APPVEYOR_REPO_TAG_NAME)
80-
artifact: Plugins
81-
auth_token:
82-
secure: 4uMFrJ2Vc3ju6OtWpQ9chRce/2JHNhfy/sjX+w+KFTNDvmSPD5CqdEuwFp/+Ln/s
83-
prerelease: true
84-
on:
85-
appveyor_repo_tag: true
80+
# XXX vvv TEMPORARY WORKAROUND DUE TO APPVEYOR ARTIFACT STORAGE LIMIT
81+
- ps: $env:S3_URL="https://supercollider.s3.amazonaws.com/$env:S3_BUILDS_LOCATION/$env:ZIP_NAME"
82+
- ps: >-
83+
If ($env:APPVEYOR_REPO_NAME -eq "supercollider/sc3-plugins") {
84+
If ([string]::IsNullOrEmpty($env:APPVEYOR_PULL_REQUEST_NUMBER)) {
85+
echo "Pushing artifact to S3"
86+
aws s3 cp --region us-west-2 --acl public-read $env:APPVEYOR_BUILD_FOLDER/build/$env:ZIP_NAME s3://supercollider/$env:S3_BUILDS_LOCATION/$env:ZIP_NAME
87+
echo "S3 Build Location = $env:S3_URL"
88+
}
89+
}
90+
# XXX ^^^ TEMPORARY WORKAROUND DUE TO APPVEYOR ARTIFACT STORAGE LIMIT
91+
92+
# XXX vvv TEMPORARILY DISABLED DUE TO APPVEYOR ARTIFACT STORAGE LIMIT
93+
#artifacts:
94+
#- path: build/%ZIP_NAME%
95+
# name: Plugins
96+
#
97+
## github releases - only tags
98+
#deploy:
99+
#- provider: GitHub
100+
# description: appveyor_$(APPVEYOR_REPO_TAG_NAME)
101+
# artifact: Plugins
102+
# auth_token:
103+
# secure: 4uMFrJ2Vc3ju6OtWpQ9chRce/2JHNhfy/sjX+w+KFTNDvmSPD5CqdEuwFp/+Ln/s
104+
# prerelease: true
105+
# on:
106+
# appveyor_repo_tag: true

0 commit comments

Comments
 (0)