-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.07 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build
on:
pull_request:
branches:
- main
- develop
jobs:
build-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
build-configuration: [Debug, Development, Shipping]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
lfs: true
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
- name: Setup
working-directory: ${{env.GITHUB_WORKSPACE}}
run: .\Setup.bat
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild Renderwerk.sln /m /p:Configuration=${{matrix.build-configuration}} -fl -flp:logfile=Logs/Build-${{matrix.build-configuration}}.log
- name: Upload logs on failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: Windows-Build-${{matrix.build-configuration}}-Logs
path: Logs/Build-${{matrix.build-configuration}}.log