Skip to content

Commit e599b60

Browse files
fix examples
1 parent 70ac376 commit e599b60

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

.github/workflows/examples.yaml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ jobs:
1212
main:
1313
name: Examples
1414
runs-on: ubuntu-22.04
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
ydb-version: [23.3, 24.1]
1519
services:
1620
ydb:
17-
image: ydbplatform/local-ydb:latest
21+
image: ydbplatform/local-ydb:${{ matrix.ydb-version }}
1822
ports:
1923
- 2135:2135
2024
- 2136:2136
@@ -27,6 +31,34 @@ jobs:
2731
YDB_TABLE_ENABLE_PREPARED_DDL: true
2832
options: '-h localhost'
2933
steps:
34+
- name: Checkout PR
35+
uses: actions/checkout@v3
36+
if: github.event.pull_request.head.sha != ''
37+
with:
38+
submodules: true
39+
ref: ${{ github.event.pull_request.head.sha }}
40+
- name: Checkout
41+
uses: actions/checkout@v3
42+
if: github.event.pull_request.head.sha == ''
43+
with:
44+
submodules: true
45+
- name: Install dependencies
46+
uses: ./.github/actions/prepare_vm
47+
- name: Prepare ccache timestamp
48+
id: ccache_cache_timestamp
49+
shell: cmake -P {0}
50+
run: |
51+
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
52+
message("::set-output name=timestamp::${current_date}")
53+
- name: Restore cache files
54+
uses: actions/cache/restore@v4
55+
with:
56+
path: ~/.ccache
57+
key: ubuntu-22.04-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
58+
restore-keys: |
59+
ubuntu-22.04-ccache-
60+
- name: Build
61+
uses: ./.github/actions/build
3062
- name: Launch basic example
3163
shell: bash
3264
run: |

0 commit comments

Comments
 (0)