mirror of
https://github.com/ShareX/ShareX.git
synced 2024-08-23 22:22:24 +12:00
44 lines
No EOL
978 B
YAML
44 lines
No EOL
978 B
YAML
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 }}" |