Skip to content

Commit

Permalink
Test no-lz4 configuration in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <cole.miller@canonical.com>
  • Loading branch information
cole-miller committed Feb 21, 2024
1 parent 677462a commit 8e8c7fa
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 40 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,46 @@ jobs:
uses: codecov/codecov-action@v4
with:
verbose: true

extra-configurations:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
raft-config:
- --enable-build-raft=yes
- --enable-build-raft=no
lz4-config:
- --with-lz4
- --without-lz4

steps:
- uses: actions/checkout@v4

- name: Set up dependencies
run: |
sudo apt update
sudo apt install -y libsqlite3-dev libuv1-dev liblz4-dev
- name: Build raft
if: ${{ matrix.raft-config == '--enable-build-raft=no' }}
run: |
git clone https://github.com/canonical/raft --depth 1
cd raft
autoreconf -i
./configure --enable-debug --enable-sanitize
make -j4
sudo make install
sudo ldconfig
- name: Build dqlite
run: |
autoreconf -i
./configure --enable-debug --enable-sanitize ${{ matrix.raft-config }}
make -j4
- name: Test
run: |
export LIBRAFT_TRACE=1 LIBDQLITE_TRACE=1
make -j4 check || (cat ./test-suite.log && false)
2 changes: 1 addition & 1 deletion .github/workflows/cla-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
cla-check:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Check if CLA signed
uses: canonical/has-signed-canonical-cla@v1
2 changes: 1 addition & 1 deletion .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
dqlite:
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'please test downstream') }}
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Install apt deps
run: |
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/external-raft.yml

This file was deleted.

0 comments on commit 8e8c7fa

Please sign in to comment.