From 8b2e594e298500a8f1cb0d3cb3da2780459993c2 Mon Sep 17 00:00:00 2001 From: alexgiving Date: Fri, 15 Sep 2023 16:17:34 +0300 Subject: [PATCH] init --- .github/workflows/workflow.yaml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 84c3e81..844d8b0 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -14,6 +14,7 @@ jobs: os: [ ubuntu-20.04, ubuntu-22.04, + windows-2022, ] runs-on: ${{ matrix.os }} @@ -21,13 +22,28 @@ jobs: - uses: actions/checkout@v3 - name: Build Stage + shell: bash run: | mkdir build && cd build - cmake -DENABLE_ADE_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=${{ matrix.version }} .. - make -j + + if [ "$RUNNER_OS" == "Windows" ]; then + cmake -DENABLE_ADE_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=${{ matrix.version }} -G Ninja .. + cmake --build . --target GTest + cmake --build . + + elif [ "$RUNNER_OS" == "Linux" ]; then + cmake -DENABLE_ADE_TESTING=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=${{ matrix.version }} .. + make -j + + else + echo "$RUNNER_OS not supported" + exit 1 + fi - name: ADE-Test Stage + shell: bash run: ./build/bin/ade-tests - name: CMN-Test Stage - run: ./build/bin/common-tests \ No newline at end of file + shell: bash + run: ./build/bin/common-tests