From 7ae7dee0467bf10d55aec4c29a82127b96fca8e8 Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Sat, 30 Oct 2021 00:26:11 +0200 Subject: [PATCH] Edit github action file --- .github/workflows/build-and-test.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 7963d9db..58731410 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -250,14 +250,14 @@ jobs: - name: Install Library on Windows if: startsWith(matrix.config.os, 'windows') shell: bash - run: cmake --install build/ + run: cmake --install build/ --config ${{ matrix.config.build_type }} - - name: Unit Tests (Linux / MacOS / Windows MinGW) + - name: Run Unit Tests (Linux / MacOS / Windows MinGW) if: ${{ !startsWith(matrix.config.os, 'windows') }} shell: bash run: ./build/test/tests - - name: Unit Tests (Wndows MSVC) + - name: Run Unit Tests (Windows MSVC) if: ${{ startsWith(matrix.config.name, 'Windows / MSVC') }} shell: bash run: "./build/test/${{ matrix.config.build_type }}/tests.exe" @@ -280,6 +280,16 @@ jobs: cmake --build build_hello_world/ --config ${{ matrix.config.build_type }} ./build_hello_world/helloworld + - name: Run Hello World (Linux / MacOS / Windows MinGW) + if: ${{ !startsWith(matrix.config.name, 'Windows / MSVC') }} + shell: bash + run: "./build_hello_world/helloworld/helloworld" + + - name: Run Hello World (Windows MSVC) + if: ${{ startsWith(matrix.config.name, 'Windows / MSVC') }} + shell: bash + run: "./build_hello_world/helloworld/${{ matrix.config.build_type }}/helloworld.exe" + - name: Memory Leaks Test if: ${{ startsWith(matrix.config.name, 'Linux / GCC (Debug, Single Precision)') }} shell: bash