blob: 81ab83cdefb0cd895cf8442d7b41b5d1dfb8d562 (
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
|
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' | grep -E "(Test\s*#|\[FAIL\])"
|