Skip to content

added benchmark action #28

added benchmark action

added benchmark action #28

Workflow file for this run

name: Googletest Unit Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download boost
id: install-boost
run: |
bash .github/workflows/scripts/install_boost.sh
echo "BOOST_ROOT=${{runner.workspace}}/Loki/boost_1_84_0" >> "$GITHUB_OUTPUT"
- name: Configure CMake
run: cmake -DENABLE_TESTING:BOOL=TRUE -S $GITHUB_WORKSPACE -B ${{runner.workspace}}/build
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
- name: Build
working-directory: ${{runner.workspace}}/build
run: export CXXFLAGS="-Werror" && cmake --build .
- name: Test
working-directory: ${{runner.workspace}}/build/tests
run: GTEST_OUTPUT=xml:test-results/ GTEST_COLOR=1 ctest -V