[CI, Test] Added 'PropertySheets' marking and test job in actions
This commit is contained in:
parent
c536089620
commit
e4b88c8d9c
36
.github/workflows/build.yml
vendored
36
.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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -22,3 +27,30 @@ jobs:
|
||||||
|
|
||||||
- name: build
|
- 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">
|
<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'">
|
<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" />
|
<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"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
|
||||||
<Import Project="../../Umbra.CPP.props" />
|
<ImportGroup Label="PropertySheets">
|
||||||
<Import Project="$(SolutionDir)vendor/sdl2/sdl2.props" />
|
<Import Project="../../Umbra.CPP.props" />
|
||||||
<Import Project="$(SolutionDir)vendor/glm/glm.props" />
|
<Import Project="$(SolutionDir)vendor/sdl2/sdl2.props" />
|
||||||
|
<Import Project="$(SolutionDir)vendor/glm/glm.props" />
|
||||||
|
</ImportGroup>
|
||||||
|
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<VCProjectVersion>15.0</VCProjectVersion>
|
<VCProjectVersion>15.0</VCProjectVersion>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user