Skip to content

Commit 6a18671

Browse files
committed
ci: build Tarantool tests
Follows up tarantool/tarantool#10911
1 parent 2362054 commit 6a18671

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/test.yaml

Lines changed: 25 additions & 2 deletions
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,22 @@ 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_FUZZER=ON \
86+
-G Ninja -S . -B build
87+
env:
88+
LUA_TESTS_GIT_REF: ${{ github.event.pull_request.head.sha || github.sha }}
89+
if: ${{ matrix.LUA == 'tarantool' }}
90+
7191
- name: Building
72-
run: cmake --build build --parallel $(nproc)
92+
run: |
93+
cmake --build build --parallel $(nproc) \
94+
--target ${{ matrix.LUA == 'tarantool' && 'lua-tests' || 'all' }}
7395
7496
- name: Testing
7597
run: cmake --build build --target test
7698
env:
7799
CTEST_OUTPUT_ON_FAILURE: 1
100+
if: ${{ matrix.LUA != 'tarantool' }}

0 commit comments

Comments
 (0)