-
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.
Merge pull request #568 from cole-miller/import-raft
Import raft
- Loading branch information
Showing
197 changed files
with
45,376 additions
and
161 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,12 @@ | ||
Checks: '-*,readability-identifier-naming' | ||
HeaderFilterRegex: '.*' | ||
WarningsAsErrors: '*' | ||
CheckOptions: | ||
- key: readability-identifier-naming.StructCase | ||
value: lower_case | ||
- key: readability-identifier-naming.UnionCase | ||
value: lower_case | ||
- key: readability-identifier-naming.FunctionCase | ||
value: lower_case | ||
- key: readability-identifier-naming.TypedefCase | ||
value: lower_case |
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
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
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,38 @@ | ||
name: CI Tests (external libraft) | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install -y libsqlite3-dev liblz4-dev libuv1-dev | ||
- name: Build raft | ||
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 | ||
make -j4 | ||
- name: Test | ||
run: | | ||
export LIBRAFT_TRACE=1 LIBDQLITE_TRACE=1 | ||
make -j4 check || (cat ./test-suite.log && false) |
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 |
---|---|---|
|
@@ -10,10 +10,20 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: DoozyX/[email protected] | ||
with: | ||
source: 'src test include' | ||
exclude: 'test/lib/munit.*' | ||
extensions: 'c,h' | ||
clangFormatVersion: 14 | ||
style: file | ||
fetch-depth: 2 | ||
- name: Install apt dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install -y libsqlite3-dev liblz4-dev libuv1-dev bear | ||
- uses: KyleMayes/install-llvm-action@master | ||
with: | ||
version: 17 | ||
- name: Run clang-format | ||
run: | | ||
find . \( -name '*.c' -or -name '*.h' \) -not -name 'munit.*' -path ./llvm -prune | xargs ./llvm/bin/clang-format --style=file --dry-run -Werror | ||
- name: Run clang-tidy | ||
run: | | ||
shopt -s globstar | ||
bear -- cc -D_GNU_SOURCE -DHAVE_LINUX_AIO_ABI_H -c {src,test}/**/*.c | ||
git show -U0 --first-parent | ./clang-tidy-diff.py -p1 -config-file=.clang-tidy -clang-tidy-binary=./llvm/bin/clang-tidy -use-color |
Oops, something went wrong.