Skip to content

Commit c13a80a

Browse files
authored
Update run_examples.yml
1 parent e8d4bd6 commit c13a80a

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/run_examples.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ name: Run Examples
22

33
on:
44
workflow_dispatch:
5-
inputs:
6-
version:
7-
description: "Release version"
8-
required: true
9-
5+
106
concurrency:
117
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
128
cancel-in-progress: true
@@ -32,18 +28,33 @@ jobs:
3228
8
3329
21
3430
cache: "maven"
31+
- name: Cache Artifacts
32+
id: cache-ch-artifats
33+
uses: actions/cache@v4
34+
with:
35+
path: ~/.m2/repository/com/clickhouse/**
36+
key: ${{ github.run_id }}-ch-artifacts
3537
- name: Build and install libraries
3638
run: mvn --batch-mode --no-transfer-progress --show-version --strict-checksums --threads 2 -Dmaven.wagon.rto=30000 -Dj8 -DskipITs install
3739
- name: Compile examples
3840
run: |
3941
cd examples/jdbc
4042
mvn clean compile
43+
echo "Run Id ${{ github.run_id }}"
4144
run-examples:
4245
runs-on: ubuntu-latest
4346
timeout-minutes: 15
4447
name: Run Examples
4548
needs: compile
4649
steps:
50+
- name: Check out repository
51+
uses: actions/checkout@v4
52+
- name: Restore cached Primes
53+
id: cache-primes-restore
54+
uses: actions/cache/restore@v4
55+
with:
56+
path: ~/.m2/repository/com/clickhouse/
57+
key: ${{ github.run_id }}-ch-artifacts
4758
- name: Run Docker
4859
run: |
4960
docker run -d --name demo-service-db -e CLICKHOUSE_USER=default -e CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1 -e CLICKHOUSE_PASSWORD=secret -p 8123:8123 clickhouse/clickhouse-server

0 commit comments

Comments
 (0)