Skip to content

Commit 55640cc

Browse files
authored
Add compile-check for java8 & java11 (#42)
1 parent eeab667 commit 55640cc

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# This workflow will compile IoTDB under jdk8 to check for compatibility issues
2+
3+
name: Compile Check
4+
5+
on:
6+
push:
7+
branches:
8+
- master
9+
- 'new_*'
10+
paths-ignore:
11+
- 'docs/**'
12+
- 'site/**'
13+
pull_request:
14+
branches:
15+
- master
16+
- "new_*"
17+
paths-ignore:
18+
- 'docs/**'
19+
- 'site/**'
20+
# allow manually run the action:
21+
workflow_dispatch:
22+
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.ref }}
25+
cancel-in-progress: true
26+
27+
env:
28+
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
29+
MAVEN_ARGS: --batch-mode --no-transfer-progress
30+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
31+
32+
jobs:
33+
compile-check:
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
java: [8, 11]
38+
os: [ ubuntu-latest ]
39+
runs-on: ${{ matrix.os }}
40+
steps:
41+
- uses: actions/checkout@v4
42+
- name: Set up JDK ${{ matrix.java }}
43+
uses: actions/setup-java@v4
44+
with:
45+
distribution: liberica
46+
java-version: ${{ matrix.java }}
47+
- name: Compiler Test
48+
shell: bash
49+
run: |
50+
mvn clean compile -P with-integration-tests -ntp

0 commit comments

Comments
 (0)