-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI job for building against latest SQLite, libuv
Signed-off-by: Cole Miller <[email protected]>
- Loading branch information
1 parent
0adc6b9
commit 68e4493
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: CI Tests (latest deps) | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Raise aio-max-nr | ||
run: | | ||
sysctl fs.aio-max-nr | ||
sudo sysctl -w fs.aio-max-nr=1000000 | ||
- name: Purge distro libuv | ||
run: | | ||
sudo apt remove libuv1 | ||
- name: Install liblz4 | ||
run: | | ||
sudo apt install liblz4-dev | ||
- name: Install latest libuv | ||
run: | | ||
version="$(curl -L 'https://dist.libuv.org/dist' | grep -o 'v[0-9]\.[0-9]\{1,2\}\.[0-9]\{1,2\}' | sort -V -r | head -n1)" | ||
echo "Selected libuv $version" | ||
curl -LO "https://dist.libuv.org/dist/$version/libuv-$version.tar.gz" | ||
tar xzf "libuv-$version.tar.gz" | ||
cd "libuv-$version" | ||
sh autogen.sh | ||
./configure | ||
make -j4 | ||
sudo make install | ||
sudo ldconfig | ||
- name: Get latest SQLite | ||
run: | | ||
relative="$(curl -L 'https://sqlite.org/download.html' | grep '^PRODUCT' | grep 'amalgamation' | cut -d',' -f3)" | ||
curl -LO "https://sqlite.org/$relative" | ||
name="$(basename "$relative" .zip)" | ||
echo "Selected $name" | ||
unzip "$name.zip" | ||
cd "$name" | ||
cp sqlite3.{c,h} "$GITHUB_WORKSPACE" | ||
- name: Build dqlite | ||
run: | | ||
autoreconf -i | ||
./configure --enable-debug --enable-sanitize --enable-build-raft --enable-build-sqlite | ||
make -j4 unit-test integration-test \ | ||
raft-core-fuzzy-test \ | ||
raft-core-integration-test \ | ||
raft-core-unit-test \ | ||
raft-uv-integration-test \ | ||
raft-uv-unit-test | ||
- name: Test | ||
run: | | ||
export LIBDQLITE_TRACE=1 | ||
make check || (cat ./test-suite.log && false) |