forked from oracle/nb-javac
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (48 loc) · 1.7 KB
/
netbeans.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
name: NetBeans
on: [push]
# push:
# branches: [ master ]
jobs:
linux:
name: "NetBeans on nb-javac"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 8
- name: Record JDK8
run: echo "$JAVA_HOME" | tee jdk8
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 11
- name: Record JDK11
run: echo "$JAVA_HOME" | tee jdk11
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 17.0.0
- name: Record JDK17
run: echo "$JAVA_HOME" | tee jdk17
- name: Jackpot on JDK17
run: ant -f make/langtools/netbeans/nb-javac clean jackpot
- name: Finish Build on JDK8
run: JAVA_HOME=`cat jdk8` ant -f make/langtools/netbeans/nb-javac jar
- name: Check NetBeans out
run: |
git clone https://github.com/apache/netbeans
cd netbeans
git checkout 0a84604d51f9e8b560c060b8e26cdb3ee3141804
- name: Build NetBeans with latest nb-javac
run: JAVA_HOME=`cat jdk11` ant -f netbeans build -Dnbjavac.class.path=`pwd`/make/langtools/netbeans/nb-javac/dist/nb-javac-*.jar
- name: Setup Xvfb
run: |
echo "DISPLAY=:99.0" >> $GITHUB_ENV
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- name: Test with Commit Validation
run: JAVA_HOME=`cat jdk11` ant -f netbeans commit-validation -Dnbjavac.class.path=`pwd`/make/langtools/netbeans/nb-javac/dist/nb-javac-*.jar