From 6a1867117d5daf603bc1f50adf2c1740308d6d5a Mon Sep 17 00:00:00 2001 From: Sergey Bronnikov Date: Wed, 18 Dec 2024 19:18:04 +0300 Subject: [PATCH 1/2] ci: build Tarantool tests Follows up tarantool/tarantool#10911 --- .github/workflows/test.yaml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4c45ac1a..68dcd766 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -33,10 +33,15 @@ jobs: LUA: - "lua" - "luajit" + - "tarantool" fail-fast: false runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 + submodules: recursive + repository: ${{ matrix.LUA == 'tarantool' && 'tarantool/tarantool' || github.repository }} - name: Setup common packages run: | @@ -50,7 +55,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,10 +79,22 @@ 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_FUZZER=ON \ + -G Ninja -S . -B build + env: + LUA_TESTS_GIT_REF: ${{ github.event.pull_request.head.sha || github.sha }} + if: ${{ matrix.LUA == 'tarantool' }} + - name: Building - run: cmake --build build --parallel $(nproc) + run: | + cmake --build build --parallel $(nproc) \ + --target ${{ matrix.LUA == 'tarantool' && 'lua-tests' || 'all' }} - name: Testing run: cmake --build build --target test env: CTEST_OUTPUT_ON_FAILURE: 1 + if: ${{ matrix.LUA != 'tarantool' }} From a5755aaeb4bebaa2cfd4623eb0d0e1011488b947 Mon Sep 17 00:00:00 2001 From: Sergey Bronnikov Date: Sat, 30 Nov 2024 14:08:38 +0300 Subject: [PATCH 2/2] readme: add Tarantool badge Follows up tarantool/tarantool#10911 --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 47e29e65..fdc861ba 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,12 @@ + + Tarantool + + + + # Lua C API tests