From e4b88c8d9ccc0796d65b8ec397c16a71ecf5dc38 Mon Sep 17 00:00:00 2001 From: dpeter99 Date: Fri, 10 Jun 2022 13:51:58 +0200 Subject: [PATCH] [CI, Test] Added 'PropertySheets' marking and test job in actions --- .github/workflows/build.yml | 38 +++++++++++++++++++++-- Umbra.CPP.props | 4 ++- projs/shadow-engine/shadow-engine.vcxproj | 8 +++-- 3 files changed, 43 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5cc7199..83943b9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,11 @@ -name: C/C++ CI +name: Build and Test -on: [push] +on: + push: + branches: [ main ] + paths-ignore: + - 'docs/**' + - 'specs/**' jobs: build: @@ -21,4 +26,31 @@ jobs: run: nuget restore umbra.sln - name: build - run: msbuild /m /p:Configuration=Debug umbra.sln \ No newline at end of file + run: msbuild /m /p:Configuration=Debug umbra.sln + + - name: use cache + uses: actions/cache@v2 + with: + path: "/bin/Debug" + key: ${{ runner.os }}-$GITHUB_RUN_ID + + - name: Upload shadow-engine artifact + uses: actions/upload-artifact@v3 + with: + name: ${{ needs.update.outputs.old_version_name }}-${{ needs.update.outputs.new_version_name }}-patch + path: './bin/Debug/shadow-engine/*' + + test-sff: + runs-on: windows-latest + depends-on: build + steps: + - name: use cache + uses: actions/cache@v2 + with: + path: "/bin/Debug" + key: ${{ runner.os }}-$GITHUB_RUN_ID + + - name: Test shadow-file-format + run: .\bin\Debug\shadow-file-format-test\shadow-file-format-test.exe --gtest_output="xml:./test-results/shadow-file-format-test.xml" + + \ No newline at end of file diff --git a/Umbra.CPP.props b/Umbra.CPP.props index 15c84c7..bd5cdc8 100644 --- a/Umbra.CPP.props +++ b/Umbra.CPP.props @@ -1,5 +1,7 @@  - + + + diff --git a/projs/shadow-engine/shadow-engine.vcxproj b/projs/shadow-engine/shadow-engine.vcxproj index 3d4c32e..7e22d1b 100644 --- a/projs/shadow-engine/shadow-engine.vcxproj +++ b/projs/shadow-engine/shadow-engine.vcxproj @@ -1,9 +1,11 @@ - - - + + + + + 15.0