Skip to content

changes

changes #149

name: CMake Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: Configure CMake (Конфигурация CMake)
run: cmake -S $GITHUB_WORKSPACE -B ${{runner.workspace}}/build
- name: Build (Сборка)
working-directory: ${{runner.workspace}}/build
run: cmake --build .
- name: Tests (Тесты)
working-directory: ${{runner.workspace}}/build
run: GTEST_OUTPUT=xml:test-results/ GTEST_COLOR=1 ctest -V
- name: Upload test results (Загрузка результатов тестов)
uses: actions/upload-artifact@v2
if: failure()
with:
name: test_results_xml
path: ${{runner.workspace}}/build/test-results/**/*.xml