-
-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (34 loc) · 1.05 KB
/
pull-request.yml
File metadata and controls
44 lines (34 loc) · 1.05 KB
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
39
40
41
42
43
44
name: Pull Request Check
on:
pull_request:
branches: [ "main" ]
env:
SOLUTION: source/Monaco.sln
PROJECT_FILE: source/Monaco/Monaco.csproj
jobs:
pull-request-check:
strategy:
matrix:
configuration: [ Release ]
platform: [ x64, x86, arm64 ]
runs-on: windows-latest
steps:
- name: Git Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.1
- name: Restore dependencies
run: msbuild ${{ env.SOLUTION }} /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Build
run: msbuild ${{ env.SOLUTION }} /p:Configuration=Release /p:Platform=$env:Platform
env:
Platform: ${{ matrix.platform }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any