Skip to content

Thread pool clean

Thread pool clean #797

Workflow file for this run

name: CI Tests
on:
- push
- pull_request
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
compiler:
- gcc
- clang
tracing:
- LIBDQLITE_TRACE=1
- NOLIBDQLITE_TRACE=1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up dependencies
run: |
sudo apt update
sudo apt install -y lcov libsqlite3-dev liblz4-dev libuv1-dev
- name: Build dqlite
env:
CC: ${{ matrix.compiler }}
run: |
autoreconf -i
./configure --enable-debug --enable-code-coverage --enable-sanitize --enable-build-raft
make -j4
- name: Test
env:
CC: ${{ matrix.compiler }}
run: |
export ${{ matrix.tracing }}
make -j4 check || (cat ./test-suite.log && false)
- name: Coverage
env:
CC: ${{ matrix.compiler }}
if: ${{ matrix.compiler == 'gcc' }}
run: |
make code-coverage-capture
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
verbose: true