From 26af78f39e84d00ca8767e1095190a46dfc3aa75 Mon Sep 17 00:00:00 2001 From: Sergey Bronnikov Date: Wed, 18 Dec 2024 19:18:04 +0300 Subject: [PATCH] ci: build Tarantool tests Follows up ... --- .github/workflows/test.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4c45ac1..ba5be31 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -33,10 +33,19 @@ jobs: LUA: - "lua" - "luajit" + - "tarantool" fail-fast: false runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 + if: ${{ matrix.LUA != 'tarantool' }} + + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + submodules: recursive + repository: 'tarantool/tarantool' + if: ${{ matrix.LUA == 'tarantool' }} - name: Setup common packages run: | @@ -50,7 +59,13 @@ jobs: libz-dev \ ninja-build \ pkg-config \ - protobuf-compiler + protobuf-compiler \ + build-essential \ + liblz4-dev \ + autoconf \ + automake \ + libtool \ + util-linux - name: Running CMake (PUC Rio Lua -current) run: | @@ -68,6 +83,14 @@ jobs: -G Ninja -S . -B build if: ${{ matrix.LUA == 'luajit' }} + - name: Running CMake (Tarantool) + run: | + cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \ + -DCMAKE_BUILD_TYPE=Debug -DENABLE_ASAN=ON \ + -DENABLE_FUZZER=ON \ + -G Ninja -S . -B build + if: ${{ matrix.LUA == 'tarantool' }} + - name: Building run: cmake --build build --parallel $(nproc) @@ -75,3 +98,4 @@ jobs: run: cmake --build build --target test env: CTEST_OUTPUT_ON_FAILURE: 1 + if: ${{ matrix.LUA != 'tarantool' }}