Skip to content

Commit 433de4a

Browse files
committed
workflows
1 parent 78aeb16 commit 433de4a

File tree

3 files changed

+83
-4
lines changed

3 files changed

+83
-4
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@ jobs:
1717
timeout-minutes: 20
1818
strategy:
1919
matrix:
20-
java: [ 8, 11, 17, 21, 25 ]
20+
java: [ 11 ]
2121
os-arch:
2222
- { os: ubuntu-24.04, arch: x64 }
23-
- { os: windows-latest, arch: x64 }
24-
- { os: macos-latest, arch: arm64 }
25-
- { os: ubuntu-24.04-arm, arch: arm64 }
2623
fail-fast: false
2724
max-parallel: 16
2825
name: Test on JDK ${{ matrix.java }} OS ${{ matrix.os-arch.os }} (${{ matrix.os-arch.arch }})
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Java CI
2+
3+
on:
4+
push:
5+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-excluding-paths
6+
paths-ignore:
7+
- 'docs/**'
8+
- '**.md'
9+
pull_request:
10+
paths-ignore:
11+
- 'docs/**'
12+
- '**.md'
13+
workflow_dispatch:
14+
15+
jobs:
16+
test:
17+
timeout-minutes: 20
18+
strategy:
19+
matrix:
20+
java: [ 8, 11, 17, 21, 25 ]
21+
os-arch:
22+
- { os: ubuntu-24.04, arch: x64 }
23+
- { os: windows-latest, arch: x64 }
24+
- { os: macos-latest, arch: arm64 }
25+
- { os: ubuntu-24.04-arm, arch: arm64 }
26+
fail-fast: false
27+
max-parallel: 16
28+
name: Test on JDK ${{ matrix.java }} OS ${{ matrix.os-arch.os }} (${{ matrix.os-arch.arch }})
29+
runs-on: ${{ matrix.os-arch.os }}
30+
31+
steps:
32+
- uses: actions/checkout@v3
33+
- uses: actions/setup-java@v3
34+
with:
35+
distribution: zulu
36+
java-version: ${{ matrix.java }}
37+
cache: maven
38+
- name: Build with Maven and generate code coverage
39+
run: ./mvnw -V --no-transfer-progress -Pgen-javadoc -Pgen-dokka clean package
40+
env:
41+
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Duser.timezone=Asia/Shanghai
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Java CI
2+
3+
on:
4+
push:
5+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-excluding-paths
6+
paths-ignore:
7+
- 'docs/**'
8+
- '**.md'
9+
pull_request:
10+
paths-ignore:
11+
- 'docs/**'
12+
- '**.md'
13+
workflow_dispatch:
14+
15+
jobs:
16+
test:
17+
timeout-minutes: 20
18+
strategy:
19+
matrix:
20+
java: [ 8, 11, 17, 21, 25 ]
21+
os-arch:
22+
- { os: ubuntu-24.04, arch: x64 }
23+
- { os: windows-latest, arch: x64 }
24+
- { os: macos-latest, arch: arm64 }
25+
- { os: ubuntu-24.04-arm, arch: arm64 }
26+
fail-fast: false
27+
max-parallel: 16
28+
name: Test on JDK ${{ matrix.java }} OS ${{ matrix.os-arch.os }} (${{ matrix.os-arch.arch }})
29+
runs-on: ${{ matrix.os-arch.os }}
30+
31+
steps:
32+
- uses: actions/checkout@v3
33+
- uses: actions/setup-java@v3
34+
with:
35+
distribution: zulu
36+
java-version: ${{ matrix.java }}
37+
cache: maven
38+
- name: Build with Maven and generate code coverage
39+
run: ./mvnw -V --no-transfer-progress clean package
40+
env:
41+
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Duser.timezone=Asia/Shanghai

0 commit comments

Comments
 (0)