-
Notifications
You must be signed in to change notification settings - Fork 441
116 lines (112 loc) · 3.07 KB
/
validate-pr.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: Validate PR
on:
pull_request:
push:
jobs:
# Run the unit test ahead of the scripted tests
validate:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
- os: macos-latest
runs-on: '${{ matrix.os }}'
steps:
- uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 8
cache: sbt
- uses: sbt/setup-sbt@v1
- name: Validate
run: sbt -v "+validate"
scripted:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
java: 8
distribution: zulu
command: +validateUniversal
- os: ubuntu-latest
java: 8
distribution: zulu
command: +validateJar
- os: ubuntu-latest
java: 8
distribution: zulu
command: +validateBash
- os: ubuntu-latest
java: 8
distribution: zulu
command: +validateAsh
- os: ubuntu-latest
java: 8
distribution: zulu
command: +validateRpm
- os: ubuntu-latest
java: 8
distribution: zulu
command: +validateDebian
- os: ubuntu-latest
java: 8
distribution: zulu
command: +validateDocker
- os: ubuntu-latest
java: 11
distribution: temurin
command: +validateJlink
- os: ubuntu-latest
java: 22
distribution: graalvm
command: +validateGraalVMNativeImage
- os: macos-latest
java: 8
distribution: zulu
command: +validateMacOS
- os: windows-latest
java: 8
distribution: zulu
command: +validateWindows
needs:
- validate
runs-on: '${{ matrix.os }}'
steps:
- uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: '${{ matrix.distribution }}'
java-version: '${{ matrix.java }}'
cache: sbt
- uses: sbt/setup-sbt@v1
- name: Scritped test
run: sbt -v '${{ matrix.command }}'
scripted-jdk-packager:
runs-on: ubuntu-latest
strategy:
fail-fast: false
needs:
- validate
steps:
- uses: actions/checkout@v4
- name: Download Zulu 8
run: |
# the standard zulu dist doesn't include javafx
download_url="https://cdn.azul.com/zulu/bin/zulu8.38.0.13-ca-fx-jdk8.0.212-linux_x64.tar.gz"
wget -O $RUNNER_TEMP/java_package.tar.gz $download_url
- name: Setup Azul JDK with JavaFX
uses: actions/setup-java@v4
with:
distribution: jdkfile
jdkFile: '${{ runner.temp }}/java_package.tar.gz'
java-version: 8.0.0
architecture: x64
cache: sbt
- uses: sbt/setup-sbt@v1
- name: Validate
run: sbt "+validateJdkPackagerTravis"