This repository has been archived by the owner on Nov 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathappveyor.yml
78 lines (71 loc) · 2.81 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
clone_depth: 10
platform: x64
configuration: Release
environment:
MAVEN_VERSION: 3.6.1
matrix:
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
CI_DEPLOY_USERNAME:
secure: dWEJ6lm4P9/5FD+rmAS45A==
CI_DEPLOY_PASSWORD:
secure: TE0Y8Z/eW3fCFrVrJ0liFKJpYhC+HWR2yDNATU38crF8aFs7Pj2LloZ8c54+DKNu
CERTIFICATE_KEY:
secure: Ky9iZmBUxU6Ae7dDFb8RLm03XrGvdVA0rYBoz7ree64=
GPG_KEY_NAME:
secure: pFZboraK8rHbi1ATX7ixxME/wkxZJzviH98ajt4zE6g=
GPG_PASSPHRASE:
secure: X/eC4bW8S7r0+vZ8KJnqu0VOLeshB8pk8h5F/2S1ArY=
OSSRH_USERNAME:
secure: q9o/GpgNFG7egrDNdcrXcv6WkC/5EepBl4DUveVpVg8=
OSSRH_PASSWORD:
secure: ZFmUDuBOuUQUxbciKjXbIurfYlc9X/UO2cy9SW4LJFI79k0WKQL3sNnqlDsmR4hxN0a9FsOF5fPYuRGAwwkWdQ==
artifacts:
- path: 'target\**\*.jar'
name: JARs
- path: 'target\**\*.asc'
name: Signatures
cache:
- C:\maven -> appveyor.yml
- C:\Users\appveyor\.m2\ -> pom.xml
install:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-http-proxy.ps1'))
- ps: .\appveyor-maven-proxy.ps1
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\maven" )) {
(new-object System.Net.WebClient).DownloadFile("https://repo1.maven.org/maven2/org/apache/maven/apache-maven/$env:MAVEN_VERSION/apache-maven-$env:MAVEN_VERSION-bin.zip", 'C:\maven-bin.zip')
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\maven-bin.zip", "C:\maven")
}
- cmd: SET PATH=C:\maven\apache-maven-3.3.9\bin;%JAVA_HOME%\bin;%PATH%
- cmd: SET MAVEN_OPTS=-Xmx2g
- cmd: SET JAVA_OPTS=-Xmx2g
- cmd: mvn --version
- cmd: java -version
- cmd: choco install swig
- ps: .\deploy\install-gnupg.ps1
- cmd: nuget install secure-file -ExcludeVersion
- cmd: SET PATH=C:\gnupg2;%PATH%
- ps: $env:Path += ";C:\gnupg2"
before_build:
- mkdir target\classes
- git submodule init
- git submodule update
- cd glslang
- git apply ../fix-tokenizer.patch
- python ./update_glslang_sources.py
- cd ../SPIRV-cross
- git apply ../fix-small-vector.patch
- cd ..
- cmake -G "Visual Studio 14 2015 Win64" .
build:
parallel: true
project: spirvcrossj.sln
after_build:
- bash post-build.sh
- mvn -B package
on_success:
- cmd: SET PATH=C:\gnupg2;%PATH%
- ps: $env:Path += ";C:\gnupg2"
- cmd: if "%APPVEYOR_PULL_REQUEST_TITLE%" == "" if "%APPVEYOR_REPO_BRANCH%" == "master" secure-file\tools\secure-file -decrypt deploy\codesigning-appveyor.asc.enc -secret "%CERTIFICATE_KEY%"
- cmd: if "%APPVEYOR_PULL_REQUEST_TITLE%" == "" if "%APPVEYOR_REPO_BRANCH%" == "master" gpg2 --fast-import deploy/codesigning-appveyor.asc
- cmd: if "%APPVEYOR_PULL_REQUEST_TITLE%" == "" if "%APPVEYOR_REPO_BRANCH%" == "master" bash.exe deploy/deploy.sh