-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
645 additions
and
412 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,30 @@ | ||
--- | ||
Checks: [ | ||
'-*', | ||
'clang-analyzer-*', | ||
'-clang-analyzer-cplusplus.*', | ||
'-clang-analyzer-security.*', | ||
'-clang-analyzer-deadcode.DeadStores', | ||
'clang-diagnostic-*', | ||
'bugprone-*', | ||
'-bugprone-reserved-identifier', | ||
'concurrency-*', | ||
'misc-*', | ||
'performance-*', | ||
'portability-*', | ||
'readability-*', | ||
'-readability-function-cognitive-complexity', | ||
'-readability-identifier-length', | ||
'-readability-isolate-declaration', | ||
'-readability-magic-numbers', | ||
] | ||
CheckOptions: | ||
readability-braces-around-statements.ShortStatementLines: 2 | ||
WarningsAsErrors: 'clang-analyzer-unix.*,clang-analyzer-core.NullDereference' | ||
HeaderFileExtensions: ['h'] | ||
ImplementationFileExtensions: ['c'] | ||
HeaderFilterRegex: '\/src\/.*\.h$' | ||
FormatStyle: none | ||
InheritParentConfig: false | ||
UseColor: true | ||
... |
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,156 @@ | ||
name: meson | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
|
||
jobs: | ||
linux: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-20.04 | ||
- ubuntu-22.04 | ||
buildtype: | ||
- plain | ||
- debug | ||
- debugoptimized | ||
- release | ||
- minsize | ||
cc: | ||
- gcc | ||
- clang | ||
env: | ||
CC: ${{ matrix.cc }} | ||
steps: | ||
- uses: actions/checkout@main | ||
- run: sudo apt-get update | ||
- run: sudo apt-get install -yqq --no-install-recommends meson ninja-build | ||
- run: meson setup build -Dbuildtype=${{ matrix.buildtype }} -Dtests=true | ||
- run: ninja -Cbuild -v | ||
- run: ninja -Cbuild -v test | ||
|
||
alpine: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ matrix.image }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
image: | ||
- alpine:edge | ||
- alpine:latest | ||
buildtype: | ||
- plain | ||
- debug | ||
- debugoptimized | ||
- release | ||
- minsize | ||
cc: | ||
- gcc | ||
- clang | ||
env: | ||
CC: ${{ matrix.cc }} | ||
steps: | ||
- uses: actions/checkout@main | ||
- run: apk --no-cache add build-base meson ${{ matrix.cc }} | ||
- run: meson setup build -Dbuildtype=${{ matrix.buildtype }} -Dtests=true | ||
- run: meson compile -Cbuild -v | ||
- run: meson test -Cbuild -v | ||
|
||
macos: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- macos-11 | ||
- macos-12 | ||
- macos-13 | ||
buildtype: | ||
- plain | ||
- debug | ||
- debugoptimized | ||
- release | ||
- minsize | ||
cc: | ||
- clang | ||
env: | ||
CC: ${{ matrix.cc }} | ||
steps: | ||
- uses: actions/checkout@main | ||
- run: brew install meson | ||
- run: meson setup build -Dbuildtype=${{ matrix.buildtype }} -Dtests=true | ||
- run: meson compile -Cbuild -v | ||
- run: meson test -Cbuild -v | ||
|
||
windows: | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
buildtype: | ||
- plain | ||
- debug | ||
- debugoptimized | ||
- release | ||
- minsize | ||
steps: | ||
- uses: actions/checkout@main | ||
- uses: actions/setup-python@v4 | ||
- run: pip install meson ninja | ||
- run: meson setup build -Dbuildtype=${{ matrix.buildtype }} | ||
- run: meson compile -Cbuild -v | ||
- run: meson test -Cbuild -v | ||
|
||
muon: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: alpine:edge | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
buildtype: | ||
- plain | ||
- debug | ||
- debugoptimized | ||
- release | ||
- minsize | ||
cc: | ||
- tcc | ||
- pcc | ||
env: | ||
CC: ${{ matrix.cc }} | ||
steps: | ||
- uses: actions/checkout@main | ||
- run: echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories | ||
- run: apk --no-cache add build-base muon ${{ matrix.cc }} valgrind samurai | ||
- run: muon setup -Dbuildtype=${{ matrix.buildtype }} -Dtests=true -Dvalgrind=true build | ||
- run: samu -Cbuild -v | ||
- run: cd build && muon test -vv | ||
|
||
valgrind: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- run: sudo apt-get update | ||
- run: sudo apt-get install -yqq --no-install-recommends meson valgrind | ||
- run: meson setup build -Dbuildtype=debug -Dtests=true -Dvalgrind=true | ||
- run: meson compile -Cbuild -v | ||
- run: meson test -Cbuild -v | ||
|
||
analyzer: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@main | ||
- run: sudo apt-get update | ||
- run: sudo apt-get install -yqq --no-install-recommends meson | ||
- run: meson setup build -Dbuildtype=debug -Dtests=true -Danalyzer=true | ||
- run: meson compile -Cbuild -v | ||
- run: meson test -Cbuild -v |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
.*/ | ||
!.githooks/ | ||
!.github/ | ||
.vscode/ | ||
.vscode-ctags | ||
/build*/ | ||
*.iml | ||
CMakeUserPresets.json |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
# CIRCLEQ | ||
|
||
[](https://github.com/pavelxdd/circleq/actions) | ||
[](https://github.com/pavelxdd/circleq/blob/master/UNLICENSE) | ||
|
||
CIRCLEQ is a single header intrusive circular linked list. | ||
|
||
It is inspired by `<sys/queue.h>` from `glibc` and `FreeBSD`. | ||
|
||
````bash | ||
cmake . -Bbuild -DCMAKE_INSTALL_PREFIX=/usr/local | ||
cmake --build build --target install | ||
meson setup build -Dprefix=/usr/local | ||
meson install -Cbuild | ||
```` |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.