Skip to content

Commit 34fec63

Browse files
authored
Update build.yml
1 parent 1c11565 commit 34fec63

File tree

1 file changed

+40
-52
lines changed

1 file changed

+40
-52
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -4,64 +4,52 @@ on:
44
workflow_dispatch:
55
inputs:
66
Reason:
7-
description: 'Reasons for temporary build'
7+
description: 'Reasons for temporary build'
88
required: true
9-
default: 'No reason.Just do it.'
9+
default: 'No reason. Just do it.'
1010
push:
11-
branches:
12-
- master
13-
paths-ignore:
14-
- '**/*.md'
15-
- .gitignore
16-
- .editorconfig
17-
- appveyor.yml
11+
branches:
12+
- master
13+
paths-ignore:
14+
- '**/*.md'
15+
- .gitignore
16+
- .editorconfig
17+
- appveyor.yml
1818

1919
pull_request:
20-
branches:
21-
- master
22-
paths-ignore:
23-
- '**/*.md'
24-
- .gitignore
25-
- .editorconfig
26-
- appveyor.yml
27-
28-
env:
29-
# Path to the solution file relative to the root of the project.
30-
SOLUTION_FILE_PATH: .
31-
32-
# Configuration type to build.
33-
# You can convert this to a build matrix if you need coverage of multiple configuration types.
34-
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
35-
#BUILD_CONFIGURATION: [Debug , Release]
20+
branches:
21+
- master
22+
paths-ignore:
23+
- '**/*.md'
24+
- .gitignore
25+
- .editorconfig
26+
- appveyor.yml
3627

3728
jobs:
3829
build:
39-
name: ${{matrix.BUILD_CONFIGURATION}}
40-
runs-on: windows-lastest
30+
name: Build (${{ matrix.BUILD_CONFIGURATION }})
31+
runs-on: windows-latest
4132
strategy:
42-
matrix:
43-
BUILD_CONFIGURATION: ['Debug', 'Release']
33+
matrix:
34+
BUILD_CONFIGURATION: [Debug, Release]
4435
steps:
45-
- uses: actions/checkout@v2
46-
47-
- name: Add MSBuild to PATH
48-
uses: microsoft/[email protected]
49-
50-
- name: Restore NuGet packages
51-
working-directory: ${{env.GITHUB_WORKSPACE}}
52-
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
53-
54-
- name: Build ${{matrix.BUILD_CONFIGURATION}}
55-
working-directory: ${{env.GITHUB_WORKSPACE}}
56-
# Add additional options to the MSBuild command line here (like platform or verbosity level).
57-
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
58-
run: msbuild /m /p:Configuration=${{matrix.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
59-
60-
- name: Upload Artifact
61-
uses: actions/upload-artifact@v4
62-
with:
63-
name: RevokeMsgPatcher-${{matrix.BUILD_CONFIGURATION}}
64-
path: |
65-
.\RevokeMsgPatcher\bin
66-
!.\RevokeMsgPatcher\bin\**\RevokeMsgPatcher.exe.config
67-
!.\RevokeMsgPatcher\bin\**\RevokeMsgPatcher.pdb
36+
- name: Checkout code
37+
uses: actions/checkout@v4
38+
39+
- name: Setup MSBuild
40+
uses: microsoft/setup-msbuild@v2
41+
42+
- name: Restore NuGet packages
43+
run: nuget restore
44+
45+
- name: Build Solution
46+
run: msbuild /m /p:Configuration=${{ matrix.BUILD_CONFIGURATION }}
47+
48+
- name: Upload Artifact
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: RevokeMsgPatcher-${{ matrix.BUILD_CONFIGURATION }}
52+
path: |
53+
.\RevokeMsgPatcher\bin
54+
!.\RevokeMsgPatcher\bin\**\RevokeMsgPatcher.exe.config
55+
!.\RevokeMsgPatcher\bin\**\RevokeMsgPatcher.pdb

0 commit comments

Comments
 (0)