This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
replication: Cancel correct request type when append fails. #61
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check that the ./configure script behaves as expected in various scenarios | |
name: Configure | |
on: | |
- push | |
- pull_request | |
jobs: | |
check: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Check that no optional dependency is installed | |
run: | | |
# Remove liblz4-dev which is installed by default on the runner | |
sudo apt-get remove liblz4-dev | |
# Check that there are no dependencies installed | |
! pkg-config --exists libuv | |
! pkg-config --exists liblz4 | |
- name: Run autoreconf | |
run: | | |
autoreconf -i | |
- name: With no deps ./configure | |
run: | | |
# Succeed, since we are not explicitly requiring libuv. | |
./configure | |
- name: With no deps ./configure --enable-uv | |
run: | | |
# Fail, since libuv is not installed. | |
! ./configure --enable-uv 2>errors | |
tail -1 errors | grep -q "libuv required but not found" || (cat errors && false) | |
- name: With no deps ./configure --with-lz4 | |
run: | | |
# Fail, since using lz4 makes sense only if libuv is used too. | |
! ./configure --with-lz4 2>errors | |
tail -1 errors | grep -q "liblz4 can be used only if libuv is used too" || (cat errors && false) | |
- name: Install libuv | |
run: | | |
sudo apt-get install -qq linux-libc-dev libuv1-dev | |
- name: With libuv only ./configure | |
run: | | |
# Fail, since libuv is installed but liblz4 is not. | |
! ./configure 2>errors | |
tail -1 errors | grep -q "liblz4 required but not found" || (cat errors && false) | |
- name: With libuv only ./configure --with-lz4 | |
run: | | |
# Fail, since liblz4 is not installed. | |
! ./configure --with-lz4 2>errors | |
tail -1 errors | grep -q "liblz4 required but not found" || (cat errors && false) | |
- name: With libuv only ./configure --without-lz4 | |
run: | | |
# Succeed, since we support building without lz4 even if libuv is found, | |
# as long --without-lz4 is passed. | |
./configure --without-lz4 | |
- name: With libuv only ./configure --disable-uv --with-lz4 | |
run: | | |
# Fail, since using lz4 makes sense only if libuv is used too. | |
! ./configure --disable-uv --with-lz4 2>errors | |
tail -1 errors | grep -q "liblz4 can be used only if libuv is used too" || (cat errors && false) | |
- name: With libuv only ./configure --enable-lz4 | |
run: | | |
# Fail, since liblz4 is not installed. | |
! ./configure --enable-lz4 2>errors | |
tail -1 errors | grep -q "liblz4 required but not found" || (cat errors && false) | |
- name: Install liblz4 | |
run: | | |
sudo apt-get install -qq liblz4-dev | |
- name: With libuv and liblz4 ./configure | |
run: | | |
# Succeed, since all optional dependencies are found and used. | |
./configure | |
- name: With libuv and liblz4 ./configure --without-lz4 | |
run: | | |
# Succeed, since we support building without lz4 even if both libuv and | |
# liblz4 are found. | |
./configure --without-lz4 | |
- name: With libuv and liblz4 ./configure --without-lz4 --enable-lz4 | |
run: | | |
# Fail, since enabling compression by default only makes sense if liblz4 | |
# is used. | |
! ./configure --without-lz4 --enable-lz4 2>errors | |
tail -1 errors | grep -q "snapshot compression (either by default or not) requires liblz4" || (cat errors && false) | |
- name: With libuv and liblz4 ./configure --without-lz4 --disable-lz4 | |
run: | | |
# Fail, since disabling compression by default only makes sense if | |
# liblz4 is used. | |
! ./configure --without-lz4 --disable-lz4 2>errors | |
tail -1 errors | grep -q "snapshot compression (either by default or not) requires liblz4" || (cat errors && false) | |
- name: With libuv and liblz4 ./configure --with-lz4 --enable-lz4 | |
run: | | |
# Succeed, since liblz4 is found and used. | |
./configure --with-lz4 --enable-lz4 | |
- name: With libuv and liblz4 ./configure --with-lz4 --disable-lz4 | |
run: | | |
# Succeed, since liblz4 is found and used. | |
./configure --with-lz4 --disable-lz4 | |
- name: With libuv and liblz4 ./configure --enable-lz4 | |
run: | | |
# Succeed, since liblz4 is used by default if found. | |
./configure --enable-lz4 | |
- name: With libuv and liblz4 ./configure --disable-lz4 | |
run: | | |
# Succeed, since liblz4 is used by default if found. | |
./configure --disable-lz4 |