2022-06-10 11:51:58 +00:00
|
|
|
name: Build and Test
|
2022-06-09 20:39:54 +00:00
|
|
|
|
2022-06-10 11:51:58 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
|
|
|
- 'specs/**'
|
2022-06-09 20:39:54 +00:00
|
|
|
|
|
|
|
jobs:
|
2022-06-09 20:57:56 +00:00
|
|
|
build:
|
2022-06-09 20:39:54 +00:00
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-06-09 21:04:55 +00:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2022-06-09 20:39:54 +00:00
|
|
|
|
|
|
|
- name: Add msbuild to PATH
|
|
|
|
uses: microsoft/setup-msbuild@v1.1
|
|
|
|
|
|
|
|
- name: setup nuget
|
2022-06-09 20:59:01 +00:00
|
|
|
uses: NuGet/setup-nuget@v1.0.6
|
2022-06-09 20:39:54 +00:00
|
|
|
|
|
|
|
- name: restore project packages
|
|
|
|
run: nuget restore umbra.sln
|
|
|
|
|
|
|
|
- name: build
|
2022-06-10 11:51:58 +00:00
|
|
|
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
|
2022-06-10 11:54:07 +00:00
|
|
|
needs: build
|
2022-06-10 11:51:58 +00:00
|
|
|
steps:
|
|
|
|
- name: use cache
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: "/bin/Debug"
|
|
|
|
key: ${{ runner.os }}-$GITHUB_RUN_ID
|
|
|
|
|
|
|
|
- name: Test shadow-file-format
|
2022-06-10 11:59:03 +00:00
|
|
|
powershell: .\bin\Debug\shadow-file-format-test\shadow-file-format-test.exe --gtest_output="xml:./test-results/shadow-file-format-test.xml"
|
2022-06-10 11:51:58 +00:00
|
|
|
|
|
|
|
|