changed \n to eol in parser, added eoi to keyword parsers, fixed test… #80
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
name: Googletest Unit Tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
GTEST_INSTALL_DIR: ${{ github.workspace }}/googletest-install | |
steps: | |
- name: Checkout Loki | |
uses: actions/checkout@v2 | |
- name: Checkout Google Test | |
uses: actions/checkout@v2 | |
with: | |
repository: google/googletest | |
path: 'googletest' | |
ref: 'dddb219c3eb96d7f9200f09b0a381f016e6b4562' # stick to a commit to avoid added future dependencies | |
- name: Build and Install Google Test | |
run: | | |
cd googletest | |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DCMAKE_INSTALL_PREFIX=$GTEST_INSTALL_DIR | |
cmake --build build | |
cmake --install build | |
- name: Download and extract boost, no building required | |
run: | | |
wget --no-check-certificate 'https://archives.boost.io/release/1.84.0/source/boost_1_84_0.tar.gz' | |
tar xf boost_1_84_0.tar.gz | |
- name: Configure CMake | |
run: cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING:BOOL=TRUE -DCMAKE_PREFIX_PATH="$GTEST_INSTALL_DIR;$GITHUB_WORKSPACE/boost_1_84_0" -S $GITHUB_WORKSPACE -B $GITHUB_WORKSPACE/build | |
- name: Build Loki | |
run: export CXXFLAGS="-Werror" && cmake --build build | |
- name: Test | |
working-directory: build/tests | |
run: GTEST_OUTPUT=xml:test-results/ GTEST_COLOR=1 ctest -V |