blob: 664997fa0b135e492fc0476b727b5d8988537e79 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
name: C/C++ CI
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure
shell: bash
run: |
cd ../build
rm -rf *
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_TOOLCHAIN_FILE=../ydb/clang.toolchain ../ydb
- name: Build
shell: bash
run: |
cd ../build
ninja
- name: Test
shell: bash
run: |
rm -rf /mnt/d/tmp/*
cd ../build/ydb
# Our test util provides output with coloring, so remove it using sed before sending to grep
TMPDIR=/mnt/d/tmp ctest -j28 --timeout 1200 --force-new-ctest-process --output-on-failure | \
sed -e 's/\x1b\[[0-9;]*m//g' | \
tee testrun.log | \
grep -E '(Test\s*#.*\*\*\*|\[FAIL\])|.*tests passed,.*tests failed out of'
|