|
11 | 11 | PREFERRED_LTS_VERSION: "24.3" |
12 | 12 |
|
13 | 13 | jobs: |
14 | | - compile: |
| 14 | + run-examples-with-8-jdk: |
15 | 15 | runs-on: ubuntu-latest |
16 | 16 | timeout-minutes: 15 |
17 | | - name: Compile (JDK 8) |
| 17 | + name: Run Examples (JVM 8) |
18 | 18 | steps: |
19 | 19 | - name: Check out repository |
20 | 20 | uses: actions/checkout@v4 |
21 | | - - name: Check out PR |
22 | | - run: | |
23 | | - git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 \ |
24 | | - origin pull/${{ github.event.inputs.pr }}/merge:merged-pr && git checkout merged-pr |
25 | | - if: github.event.inputs.pr != '' |
26 | | - - name: Install JDK 8 and Maven |
| 21 | + - name: Install JDK 11 and Maven |
27 | 22 | uses: actions/setup-java@v4 |
28 | 23 | with: |
29 | 24 | distribution: "temurin" |
30 | | - java-version: | |
31 | | - 8 |
32 | | - 21 |
| 25 | + java-version: 11 |
33 | 26 | cache: "maven" |
34 | | - - name: Save Repo Artifacts |
35 | | - id: save-repo-artifacts |
36 | | - uses: actions/cache/save@v4 |
37 | | - with: |
38 | | - path: ~/.m2/repository/com/clickhouse |
39 | | - key: ${{ github.run_id }}-ch-artifacts |
40 | | - - name: Build and install libraries |
41 | | - run: mvn --batch-mode --no-transfer-progress --show-version --strict-checksums --threads 2 -Dmaven.wagon.rto=30000 -Dj8 -DskipITs install |
42 | | - - name: Compile examples |
| 27 | + - name: Install libraries |
43 | 28 | run: | |
44 | | - cd examples/jdbc |
45 | | - mvn clean compile |
46 | | - echo "Run Id ${{ github.run_id }}" |
47 | | - run-examples: |
48 | | - runs-on: ubuntu-latest |
49 | | - timeout-minutes: 15 |
50 | | - name: Run Examples |
51 | | - needs: compile |
52 | | - steps: |
53 | | - - name: Check out repository |
54 | | - uses: actions/checkout@v4 |
55 | | - - name: Restore Repo Artifacts |
56 | | - id: restore-repo-artifacts |
57 | | - uses: actions/cache/restore@v4 |
| 29 | + java -version |
| 30 | + mvn --batch-mode --no-transfer-progress --show-version --strict-checksums --threads 2 -Dmaven.wagon.rto=30000 -DskipITs install |
| 31 | + - name: Install JDK 8 and Maven |
| 32 | + uses: actions/setup-java@v4 |
58 | 33 | with: |
59 | | - path: ~/.m2/repository/com/clickhouse |
60 | | - key: ${{ github.run_id }}-ch-artifacts |
| 34 | + distribution: "temurin" |
| 35 | + java-version: 8 |
| 36 | + cache: "maven" |
61 | 37 | - name: Run Examples |
62 | 38 | run: | |
63 | 39 | java -version |
|
0 commit comments