Skip to content

Commit aec4ec0

Browse files
committed
simplified run example job
1 parent 20dcefb commit aec4ec0

File tree

1 file changed

+12
-36
lines changed

1 file changed

+12
-36
lines changed

.github/workflows/run_examples.yml

Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -11,53 +11,29 @@ env:
1111
PREFERRED_LTS_VERSION: "24.3"
1212

1313
jobs:
14-
compile:
14+
run-examples-with-8-jdk:
1515
runs-on: ubuntu-latest
1616
timeout-minutes: 15
17-
name: Compile (JDK 8)
17+
name: Run Examples (JVM 8)
1818
steps:
1919
- name: Check out repository
2020
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
2722
uses: actions/setup-java@v4
2823
with:
2924
distribution: "temurin"
30-
java-version: |
31-
8
32-
21
25+
java-version: 11
3326
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
4328
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
5833
with:
59-
path: ~/.m2/repository/com/clickhouse
60-
key: ${{ github.run_id }}-ch-artifacts
34+
distribution: "temurin"
35+
java-version: 8
36+
cache: "maven"
6137
- name: Run Examples
6238
run: |
6339
java -version

0 commit comments

Comments
 (0)