[CI, Test] Added 'PropertySheets' marking and test job in actions
This commit is contained in:
parent
c536089620
commit
e4b88c8d9c
38
.github/workflows/build.yml
vendored
38
.github/workflows/build.yml
vendored
|
@ -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
|
||||
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"
|
||||
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="Umbra.props"/>
|
||||
<ImportGroup Label="PropertySheets">
|
||||
<Import Project="Umbra.props"/>
|
||||
</ImportGroup>
|
||||
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<Import Project="../../Umbra.CPP.props" />
|
||||
<Import Project="$(SolutionDir)vendor/sdl2/sdl2.props" />
|
||||
<Import Project="$(SolutionDir)vendor/glm/glm.props" />
|
||||
<ImportGroup Label="PropertySheets">
|
||||
<Import Project="../../Umbra.CPP.props" />
|
||||
<Import Project="$(SolutionDir)vendor/sdl2/sdl2.props" />
|
||||
<Import Project="$(SolutionDir)vendor/glm/glm.props" />
|
||||
</ImportGroup>
|
||||
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>15.0</VCProjectVersion>
|
||||
|
|
Loading…
Reference in New Issue
Block a user