forked from oracle/nb-javac
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1.04 KB
/
main.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
name: CI
#
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on: [push]
# push:
# branches: [ master ]
jobs:
linux:
name: "Backported 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 17
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 17.0.0
- name: Record JDK17
run: echo "$JAVA_HOME" | tee jdk17
- name: Build on JDK17
run: ant -f make/langtools/netbeans/nb-javac jar
- name: Test on JDK8
run: JAVA_HOME=`cat jdk8` ant -f make/langtools/netbeans/nb-javac test
- name: Test on JDK17
run: ant -f make/langtools/netbeans/nb-javac test
- name: Build patched JDK17
run: ./build-jdk.sh