-
Notifications
You must be signed in to change notification settings - Fork 2
/
.appveyor.yml
56 lines (50 loc) · 1.94 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
image: Visual Studio 2017
environment:
OPEN_JDK_URL: https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u192-b12/OpenJDK8U-jdk_x64_windows_hotspot_8u192b12.zip
OPEN_JDK_DIR: jdk8u192-b12
OPENJFX_REPO: http://hg.openjdk.java.net/openjfx/8u-dev/rt
OPENJFX_TAG: 8u202-b02
MSVC_VER: 14.15.26726
WINSDK_DIR: C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A
VS150COMNTOOLS: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build
skip_tags: true
install:
- curl -L -o jdk.zip %OPEN_JDK_URL%
- 7z x jdk.zip
- set JAVA_HOME=%APPVEYOR_BUILD_FOLDER%\%OPEN_JDK_DIR%
- PATH %JAVA_HOME%\bin;%PATH%
- echo "PATH:%PATH%"
- java -version
- set WORK_DIR=work
- hg clone %OPENJFX_REPO% %WORK_DIR%
- cd "%WORK_DIR%"
- hg up %OPENJFX_TAG%
- set JDKJFX=%OPEN_JDK_DIR%-with-jfx%OPENJFX_TAG%
build_script:
- echo "Patching build.gradle to allow parsing the version string provided by OpenJDK 8"
- ps: (Get-Content -path build.gradle -Raw) -replace 'v\.indexOf\(" \(build "\)', 'v.indexOf("(build ")' | Set-Content -path build.gradle
- ps: (Get-Content -path build.gradle -Raw) -replace 'v\.substring\(ib \+ 8', 'v.substring(ib + 7' | Set-Content -path build.gradle
- echo "running gradle in %cd%"
- gradlew -is
- md %JDKJFX%
- xcopy %APPVEYOR_BUILD_FOLDER%\%OPEN_JDK_DIR% %JDKJFX%\%JDKJFX% /i /e /k /h
- xcopy %APPVEYOR_BUILD_FOLDER%\%WORK_DIR%\build\sdk\rt %JDKJFX%\%JDKJFX%\jre /i /e /k /h
artifacts:
- path: /$(WORK_DIR)/build/sdk
name: openjfx-sdk-$(OPENJFX_TAG)
type: zip
- path: /$(WORK_DIR)/$(JDKJFX)
name: $(JDKJFX)
type: zip
deploy:
release: openjfx-v$(OPENJFX_TAG)
description: 'OpenJFX $(OPENJFX_TAG) binaries for Windows'
provider: GitHub
auth_token:
secure: KBros/Suy0qqL2zz85b35gQDBrtyILJxQDoDNIfE1XZcqoOWxtnV7JDPlXCr/AlM
artifact: openjfx-sdk-$(OPENJFX_TAG),$(JDKJFX)
draft: false
prerelease: false
force_update: true
on:
branch: master