Skip to content

Commit 76939eb

Browse files
committed
create ea stable workflow
1 parent 1473cf9 commit 76939eb

File tree

2 files changed

+77
-39
lines changed

2 files changed

+77
-39
lines changed

.github/workflows/jdk-ea-stable.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
name: JDK EA Stable
3+
4+
on:
5+
push:
6+
pull_request:
7+
workflow_dispatch:
8+
schedule:
9+
- cron: '39 1 * * 1,3,5'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up Java
21+
uses: oracle-actions/setup-java@v1
22+
with:
23+
website: jdk.java.net
24+
release: ea
25+
version: stable
26+
- name: Maven cache
27+
uses: actions/cache@v3
28+
env:
29+
cache-name: maven-cache
30+
with:
31+
path:
32+
~/.m2
33+
key: build-${{ env.cache-name }}
34+
- name: Maven version
35+
run: mvn --version
36+
- name: Build with Maven
37+
run: mvn package

.github/workflows/jdk-ea.yml

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
1-
2-
name: JDK EA
3-
4-
on:
5-
workflow_dispatch:
6-
schedule:
7-
- cron: '48 0 * * 6'
8-
9-
jobs:
10-
build:
11-
12-
runs-on: ${{ matrix.os }}
13-
permissions:
14-
contents: read
15-
packages: write
16-
strategy:
17-
fail-fast: false
18-
matrix:
19-
java_version: [GA,EA]
20-
os: [ubuntu-latest]
21-
22-
steps:
23-
- uses: actions/checkout@v3
24-
- name: Set up Java
25-
uses: oracle-actions/setup-java@v1
26-
with:
27-
website: jdk.java.net
28-
release: ${{ matrix.java_version }}
29-
- name: Maven cache
30-
uses: actions/cache@v3
31-
env:
32-
cache-name: maven-cache
33-
with:
34-
path:
35-
~/.m2
36-
key: build-${{ env.cache-name }}
37-
- name: Build with Maven
38-
run: mvn clean test
39-
1+
2+
name: JDK EA
3+
4+
on:
5+
pull_request:
6+
workflow_dispatch:
7+
schedule:
8+
- cron: '48 0 * * 6'
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ${{ matrix.os }}
14+
permissions:
15+
contents: read
16+
packages: write
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
java_version: [GA,EA]
21+
os: [ubuntu-latest]
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Set up Java
26+
uses: oracle-actions/setup-java@v1
27+
with:
28+
website: jdk.java.net
29+
release: ${{ matrix.java_version }}
30+
- name: Maven cache
31+
uses: actions/cache@v3
32+
env:
33+
cache-name: maven-cache
34+
with:
35+
path:
36+
~/.m2
37+
key: build-${{ env.cache-name }}
38+
- name: Build with Maven
39+
run: mvn clean test
40+

0 commit comments

Comments
 (0)