-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* modernize and rename project * use gcc-9 * improve compiler compatibility * improve instalibility * include array header * install glue target * remove lossy conversions * add find_package(PEGParserGlue) * disable shadown warning * remove deprecated std::iterator * remove conversion * rename examples and unshadow member * add example workflow * remove arg name * rename workflow * try with auto * remove default argument * move callback type outside function * rename peg -> presets * move OtherExpression out of type declarations * use template callback parameter * unwrap call * add missing args * add explicit conversion * add implicit args * use explicit arguments * add explicit conversion * don't supress output * abort windows tests
- Loading branch information
1 parent
18213ca
commit 2dad517
Showing
51 changed files
with
2,479 additions
and
1,821 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,16 @@ | ||
--- | ||
BasedOnStyle: Google | ||
AccessModifierOffset: '-2' | ||
AlignTrailingComments: 'true' | ||
AllowAllParametersOfDeclarationOnNextLine: 'false' | ||
AlwaysBreakTemplateDeclarations: 'No' | ||
BreakBeforeBraces: Attach | ||
ColumnLimit: '100' | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true' | ||
IncludeBlocks: Regroup | ||
IndentPPDirectives: AfterHash | ||
IndentWidth: '2' | ||
NamespaceIndentation: All | ||
BreakBeforeBinaryOperators: All | ||
BreakBeforeTernaryOperators: '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,27 @@ | ||
name: Examples | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
CTEST_OUTPUT_ON_FAILURE: 1 | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: configure | ||
run: cmake -Hexample -Bbuild | ||
|
||
- name: build | ||
run: cmake --build build -j4 |
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,37 @@ | ||
name: Install | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
CTEST_OUTPUT_ON_FAILURE: 1 | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: build and install library | ||
run: | | ||
CXX=g++-9 cmake -Hglue -Bbuild -DCMAKE_BUILD_TYPE=Release | ||
sudo cmake --build build --target install | ||
rm -rf build | ||
- name: configure | ||
run: CXX=g++-9 cmake -Htest -Bbuild -DTEST_INSTALLED_VERSION=1 | ||
|
||
- name: build | ||
run: cmake --build build --config Debug -j4 | ||
|
||
- name: test | ||
run: | | ||
cd build | ||
ctest --build-config Debug |
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,31 @@ | ||
name: MacOS | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
CTEST_OUTPUT_ON_FAILURE: 1 | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: configure | ||
run: cmake -Htest -Bbuild | ||
|
||
- name: build | ||
run: cmake --build build --config Debug -j4 | ||
|
||
- name: test | ||
run: | | ||
cd build | ||
ctest --build-config Debug |
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,26 @@ | ||
name: Style | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Install clang-format | ||
run: brew install clang-format | ||
|
||
- name: configure | ||
run: cmake -Htest -Bbuild | ||
|
||
- name: check style | ||
run: cmake --build build --target check-format |
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,59 @@ | ||
name: Ubuntu | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
CTEST_OUTPUT_ON_FAILURE: 1 | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: install valgrind | ||
run: sudo apt install -y valgrind | ||
|
||
- name: configure | ||
run: CXX=g++-8 cmake -Htest -Bbuild -DCMAKE_BUILD_TYPE=Debug | ||
|
||
- name: build | ||
run: cmake --build build -j4 | ||
|
||
- name: test | ||
run: cmake --build build -j4 | ||
|
||
- name: run tests with valgrind | ||
run: valgrind --track-origins=yes --error-exitcode=1 --leak-check=full ./build/PEGParserTests | ||
|
||
- name: configure with code coverage | ||
run: CXX=g++-8 cmake -Htest -Bbuild -DENABLE_TEST_COVERAGE=1 | ||
|
||
- name: build with code coverage | ||
run: cmake --build build -j4 | ||
|
||
- name: test with code coverage | ||
run: | | ||
cd build | ||
ctest --build-config Debug | ||
- name: install code coverage tools | ||
run: | | ||
wget https://github.com/linux-test-project/lcov/releases/download/v1.14/lcov-1.14.tar.gz | ||
tar xvfz lcov-1.14.tar.gz; | ||
sudo make install -C lcov-1.14 | ||
- name: collect code coverage | ||
run: | | ||
lcov --gcov-tool $(which gcov-8) --directory . --capture --no-external --exclude "*tests*" --exclude "*_deps*" --quiet --output-file coverage.info | ||
lcov --gcov-tool $(which gcov-8) --list coverage.info | ||
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo "Codecov did not collect coverage reports" |
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,35 @@ | ||
name: Windows | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
env: | ||
CTEST_OUTPUT_ON_FAILURE: 1 | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: configure | ||
run: cmake -Htest -Bbuild | ||
|
||
- name: build | ||
run: cmake --build build --config Debug -j4 | ||
|
||
# I have absolutely no idea why the windows tests freeze here. | ||
# Abort for now and will come back later. | ||
# - name: test | ||
# run: | | ||
# cd build | ||
# ctest --build-config Debug | ||
- name: test | ||
run: cmake -E false |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.