Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: build Tarantool tests #115

Merged
merged 2 commits into from
Feb 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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: |
Expand All @@ -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' }}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
<td></td>
<td><a href="https://github.com/ispras/oss-sydr-fuzz/tree/master/projects/luajit"><img src="https://img.shields.io/static/v1?label=oss-sydr-fuzz&message=fuzzing&color=brightgreen"></a></td>
</tr>
<tr>
<th>Tarantool</th>
<td><a href="https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:tarantool"><img src="https://oss-fuzz-build-logs.storage.googleapis.com/badges/tarantool.svg"></a></td>
<td><a href="https://github.com/ispras/oss-sydr-fuzz/tree/master/projects/tarantool"><img src="https://img.shields.io/static/v1?label=oss-sydr-fuzz&message=fuzzing&color=brightgreen"></a></td>
</tr>
</tr>
</table>

# Lua C API tests
Expand Down