forked from fido-alliance/noble-winrt
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
32 lines (30 loc) · 1.16 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# vs 2017 image because Windows SDK 10.0.15063.0 is not available on vs 2015 image
image: Visual Studio 2017
platform:
- x86
- x64
install:
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild "8.12.0") $env:platform;
- ps: |
npm install -g node-gyp 2>&1 | out-null
if ($LASTEXITCODE -NE 0) { throw "Failed installing node-gyp"; }
- ps: node -v
- ps: npm -v
- ps: node-gyp -v
- cmd: yarn install --frozen-lockfile
- cmd: yarn build:source
- cmd: yarn ci
- ps: $publish_binary = 0
- ps: if ($env:appveyor_repo_tag -match "true") { $publish_binary=1; }
- ps: echo "tag $env:appveyor_repo_tag_name branch $env:APPVEYOR_REPO_BRANCH"
build_script:
- ps: echo "publish $publish_binary"
- ps: $arch = $env:platform
- ps: if ($arch -match "x86") { $arch="ia32"; }
- ps: |
if ($publish_binary -Eq "1") {
yarn global add prebuild 2>&1 | write-host
prebuild -t 6.14.4 -t 8.12.0 -t 9.11.2 -t 10.16.1 -t 11.15.0 -t 12.7.0 -r node --upload $env:prebuild_upload 2>&1 | write-host
prebuild -t 2.0.0 -t 3.0.0 -t 4.0.4 -t 5.0.0 -t 6.0.0 -r electron --upload $env:prebuild_upload 2>&1 | write-host
}
echo "done."