Skip to content

Commit 5fb7165

Browse files
authored
Add prewarm workflow (#10216)
1 parent c2a5a57 commit 5fb7165

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

.github/workflows/prewarm-debug.yaml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,35 @@
11
name: Prewarm-debug
22
on:
33
schedule:
4-
- cron: "15 */6 * * *" # At minute 15 past every 6th hour
4+
- cron: "0 */2 * * *" # At minute 0 past every 2nd hour
55
workflow_dispatch:
6-
76
jobs:
8-
build_ya_make:
9-
name: Build/test x86_64 using YA
10-
uses: ./.github/workflows/build_and_test_ya_provisioned.yml
11-
secrets: inherit
12-
with:
13-
build_target: ydb/
14-
build_preset: debug
15-
run_build: true
16-
run_tests: false
7+
build_and_test:
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
build_preset: ["relwithdebinfo", "release-asan", "debug"]
12+
runs-on: [ self-hosted, auto-provisioned, "${{ format('build-preset-{0}', matrix.build_preset) }}" ]
13+
name: Build and test ${{ matrix.build_preset }}
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
ref: ${{ needs.check-running-allowed.outputs.commit_sha }}
19+
fetch-depth: 2
20+
- name: Setup ydb access
21+
uses: ./.github/actions/setup_ci_ydb_service_account_key_file_credentials
22+
with:
23+
ci_ydb_service_account_key_file_credentials: ${{ secrets.CI_YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS }}
24+
- name: Build and test
25+
uses: ./.github/actions/build_and_test_ya
26+
with:
27+
build_preset: ${{ matrix.build_preset }}
28+
build_target: "ydb/"
29+
increment: false
30+
run_tests: false
31+
put_build_results_to_cache: true
32+
secs: ${{ format('{{"TESTMO_TOKEN2":"{0}","AWS_KEY_ID":"{1}","AWS_KEY_VALUE":"{2}","REMOTE_CACHE_USERNAME":"{3}","REMOTE_CACHE_PASSWORD":"{4}"}}',
33+
secrets.TESTMO_TOKEN2, secrets.AWS_KEY_ID, secrets.AWS_KEY_VALUE, secrets.REMOTE_CACHE_USERNAME, secrets.REMOTE_CACHE_PASSWORD ) }}
34+
vars: ${{ format('{{"AWS_BUCKET":"{0}","AWS_ENDPOINT":"{1}","REMOTE_CACHE_URL":"{2}","TESTMO_URL":"{3}","TESTMO_PROJECT_ID":"{4}"}}',
35+
vars.AWS_BUCKET, vars.AWS_ENDPOINT, vars.REMOTE_CACHE_URL_YA, vars.TESTMO_URL, vars.TESTMO_PROJECT_ID ) }}

0 commit comments

Comments
 (0)