Skip to content

Commit 278ffa8

Browse files
committed
ci: build Tarantool tests
Follows up tarantool/tarantool#10911
1 parent bd72e38 commit 278ffa8

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/test.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,15 @@ jobs:
3333
LUA:
3434
- "lua"
3535
- "luajit"
36+
- "tarantool"
3637
fail-fast: false
3738
runs-on: ubuntu-22.04
3839
steps:
3940
- uses: actions/checkout@v4
41+
with:
42+
fetch-depth: 0
43+
submodules: recursive
44+
repository: ${{ matrix.LUA == 'tarantool' && 'tarantool/tarantool' || github.repository }}
4045

4146
- name: Setup common packages
4247
run: |
@@ -50,7 +55,13 @@ jobs:
5055
libz-dev \
5156
ninja-build \
5257
pkg-config \
53-
protobuf-compiler
58+
protobuf-compiler \
59+
build-essential \
60+
liblz4-dev \
61+
autoconf \
62+
automake \
63+
libtool \
64+
util-linux
5465
5566
- name: Running CMake (PUC Rio Lua -current)
5667
run: |
@@ -68,10 +79,21 @@ jobs:
6879
-G Ninja -S . -B build
6980
if: ${{ matrix.LUA == 'luajit' }}
7081

82+
- name: Running CMake (Tarantool)
83+
run: |
84+
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
85+
-DCMAKE_BUILD_TYPE=Debug -DENABLE_ASAN=ON \
86+
-DENABLE_FUZZER=ON \
87+
-G Ninja -S . -B build
88+
env:
89+
LUA_C_API_TESTS_GIT_TAG: ${{ github.event.pull_request.head.sha || github.sha }}
90+
if: ${{ matrix.LUA == 'tarantool' }}
91+
7192
- name: Building
7293
run: cmake --build build --parallel $(nproc)
7394

7495
- name: Testing
7596
run: cmake --build build --target test
7697
env:
7798
CTEST_OUTPUT_ON_FAILURE: 1
99+
if: ${{ matrix.LUA != 'tarantool' }}

0 commit comments

Comments
 (0)