-
Notifications
You must be signed in to change notification settings - Fork 51
36 lines (32 loc) · 1.13 KB
/
jdks.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
name: JDK
on:
push:
paths:
- '.github/workflows/jdks.yml'
jobs:
jdk-15-ea:
runs-on: ubuntu-latest
steps:
- run: wget https://download.java.net/java/early_access/jdk15/1/GPL/openjdk-15-ea+1_linux-x64_bin.tar.gz --output-document jdk.tar.gz
- uses: actions/setup-java@v1
with:
java-version: '15-ea'
jdkFile: jdk.tar.gz
- run: java -version
jdk-14-ea:
runs-on: ubuntu-latest
steps:
- name: 'Download latest-and-greatest JDK 14-ea'
run: |
DOCKERFILE=${HOME}/jdk-14.dockerfile
wget https://github.com/docker-library/openjdk/raw/master/14/jdk/Dockerfile --output-document ${DOCKERFILE}
JAVA_URL=$(cat ${DOCKERFILE} | sed -n 's/ENV JAVA_URL //p')
JAVA_VERSION=$(cat ${DOCKERFILE} | sed -n 's/ENV JAVA_VERSION //p')
wget --directory-prefix ${HOME} ${JAVA_URL}
echo ::set-env name=JAVA_VERSION::${JAVA_VERSION}
echo ::set-env name=JDK_FILE::"${HOME}/$(basename ${JAVA_URL})"
- uses: actions/setup-java@v1
with:
java-version: "${{ env.JAVA_VERSION }}"
jdkFile: "${{ env.JDK_FILE }}"
- run: java -version