Skip to content

Commit

Permalink
ci: build Tarantool tests
Browse files Browse the repository at this point in the history
Follows up ...
  • Loading branch information
ligurio committed Dec 18, 2024
1 parent ef74f05 commit 50b56e6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 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.event.repository.name }} }}

- name: Setup common packages
run: |
Expand All @@ -51,6 +56,12 @@ jobs:
ninja-build \
pkg-config \
protobuf-compiler
build-essential \
liblz4-dev \
autoconf \
automake \
libtool \
util-linux
- name: Running CMake (PUC Rio Lua -current)
run: |
Expand All @@ -68,10 +79,19 @@ 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)

- name: Testing
run: cmake --build build --target test
env:
CTEST_OUTPUT_ON_FAILURE: 1
if: ${{ matrix.LUA != 'tarantool' }}

0 comments on commit 50b56e6

Please sign in to comment.