Skip to content

Add automatic speed comparison with similar libraries #4

Add automatic speed comparison with similar libraries

Add automatic speed comparison with similar libraries #4

name: Speed comparison
on:
push:
branches: [ "main", "test" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install GTest
run: sudo apt-get install libgtest-dev
- name: Set reusable strings
id: strings
shell: bash
run: |
echo "working_wirectory=${{ github.workspace }}/test/speed_comparison" >> "$GITHUB_OUTPUT"
- name: Configure
run: >
cmake -B ${{ steps.strings.outputs.working_wirectory }}/cmake-build-release
-DCMAKE_CXX_COMPILER=g++
-DCMAKE_C_COMPILER=gcc
-DCMAKE_BUILD_TYPE=Release
-S ${{ github.workspace }}/test/speed_comparison
- name: Build
run: cmake --build ${{ steps.strings.outputs.working_wirectory }}/cmake-build-release --target SpeedComparison -j 8
- name: Run generated tests
working-directory: ${{ steps.strings.outputs.working_wirectory }}/cmake-build-release
run: /SpeedComparison --gtest_filter=* --gtest_color=yes --gtest_output=xml:tests.xml
- name: Set up Python
with:
python-version: '3.10'
run:

Check failure on line 43 in .github/workflows/speed_comparison.yml

View workflow run for this annotation

GitHub Actions / Speed comparison

Invalid workflow file

The workflow is not valid. .github/workflows/speed_comparison.yml (Line: 43, Col: 9): Unexpected value 'run' .github/workflows/speed_comparison.yml (Line: 40, Col: 9): Required property is missing: uses
pip install matplotlib numpy
- name: Run Python script
working-directory: ${{ steps.strings.outputs.working_wirectory }}
run: python plot.py cmake-build-release/tests.xml output.png v1.0.0