-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
44 lines (35 loc) · 978 Bytes
/
pr.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
39
40
41
42
43
44
name: Build ShareX (PR)
on:
pull_request:
branches:
- "**"
permissions:
contents: read
jobs:
build:
name: Build
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
configuration:
- Release
- Debug
- Steam
- MicrosoftStore
- MicrosoftStoreDebug
platform:
- Any CPU
env:
SOLUTION_FILE_PATH: ShareX.sln
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Restore NuGet packages
working-directory: ${{ env.GITHUB_WORKSPACE }}
run: nuget restore "${{ env.SOLUTION_FILE_PATH }}" -Project2ProjectTimeOut 300
- name: Build
working-directory: ${{ env.GITHUB_WORKSPACE }}
run: msbuild -m -p:Configuration="${{ matrix.configuration }}" -p:Platform="${{ matrix.platform }}" "${{ env.SOLUTION_FILE_PATH }}"