aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2022-12-23 00:17:35 +0300
committeralexv-smirnov <alex@ydb.tech>2022-12-23 00:17:35 +0300
commit73522d43535f3d9f3027d234188bbe030bf6b1b9 (patch)
tree1c3dbd9838a32f90fe118fe665450e81b7ef1630
parente13b044080568fc776845584d2c38846ff812640 (diff)
downloadydb-73522d43535f3d9f3027d234188bbe030bf6b1b9.tar.gz
add github action build and test
-rw-r--r--.github/workflows/build_and_test.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml
new file mode 100644
index 00000000000..41cb9a61ffb
--- /dev/null
+++ b/.github/workflows/build_and_test.yml
@@ -0,0 +1,29 @@
+name: C/C++ CI
+
+on: 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: |
+ cd ../build/ydb
+ ctest -j28 --timeout 1200 --force-new-ctest-process
+