mirror of
https://github.com/ShareX/ShareX.git
synced 2025-12-28 07:54:19 +00:00
Use dotnet build
This commit is contained in:
parent
0ac50bffc7
commit
25843a9e3f
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -78,7 +78,7 @@ jobs:
|
||||
- name: Setup
|
||||
working-directory: ${{ env.GITHUB_WORKSPACE }}
|
||||
run: |
|
||||
& "ShareX.Setup\bin\${{ matrix.configuration }}\win-x64\publish\ShareX.Setup.exe" -silent -job "${{ matrix.configuration }}"
|
||||
& "ShareX.Setup\bin\${{ matrix.configuration }}\win-x64\ShareX.Setup.exe" -silent -job "${{ matrix.configuration }}"
|
||||
|
||||
- name: Upload artifact (Setup)
|
||||
if: matrix.configuration == 'Release'
|
||||
|
||||
12
.github/workflows/pr.yml
vendored
12
.github/workflows/pr.yml
vendored
@ -32,13 +32,13 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/setup-msbuild@v2
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: 9.0.x
|
||||
|
||||
- name: Restore NuGet packages
|
||||
working-directory: ${{ env.GITHUB_WORKSPACE }}
|
||||
run: nuget restore "${{ env.SOLUTION_FILE_PATH }}" -Project2ProjectTimeOut 300
|
||||
run: dotnet restore --runtime win-x64 "${{ env.SOLUTION_FILE_PATH }}"
|
||||
|
||||
- name: Build
|
||||
working-directory: ${{ env.GITHUB_WORKSPACE }}
|
||||
run: msbuild -m -p:Configuration="${{ matrix.configuration }}" -p:Platform="${{ matrix.platform }}" "${{ env.SOLUTION_FILE_PATH }}"
|
||||
run: dotnet build --no-restore --configuration "${{ matrix.configuration }}" --self-contained true /m:1 "${{ env.SOLUTION_FILE_PATH }}"
|
||||
Loading…
Reference in New Issue
Block a user