-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (27 loc) · 877 Bytes
/
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
name: build
on: [ push, pull_request ]
permissions:
contents: read
jobs:
build-win:
env:
SOLUTION_FILE_PATH: .
PLATFORM: x86
strategy:
matrix:
BUILD_CONFIGURATION: [ Debug, Release, ReleaseDedicated ]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Initialize Submodules
uses: snickerbockers/submodules-init@v4
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Build
working-directory: ${{ env.GITHUB_WORKSPACE }}
run: msbuild /m /verbosity:minimal /p:Configuration=${{ matrix.BUILD_CONFIGURATION }} /p:Platform=${{ env.PLATFORM }} ${{ matrix.SOLUTION_FILE_PATH }}
- name: Upload
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.BUILD_CONFIGURATION }}
path: ./bin/${{ matrix.BUILD_CONFIGURATION }}/