umbra/.github/workflows/build.yml

56 lines
1.3 KiB
YAML

name: Build and Test
on:
push:
branches: [ main ]
paths-ignore:
- 'docs/**'
- 'specs/**'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: setup nuget
uses: NuGet/setup-nuget@v1.0.6
- name: restore project packages
run: nuget restore umbra.sln
- name: build
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
needs: 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"