|
4 | 4 | workflow_dispatch: |
5 | 5 | inputs: |
6 | 6 | Reason: |
7 | | - description: 'Reasons for temporary build' |
| 7 | + description: 'Reasons for temporary build' |
8 | 8 | required: true |
9 | | - default: 'No reason.Just do it.' |
| 9 | + default: 'No reason. Just do it.' |
10 | 10 | 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 |
18 | 18 |
|
19 | 19 | 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 |
36 | 27 |
|
37 | 28 | jobs: |
38 | 29 | build: |
39 | | - name: ${{matrix.BUILD_CONFIGURATION}} |
40 | | - runs-on: windows-lastest |
| 30 | + name: Build (${{ matrix.BUILD_CONFIGURATION }}) |
| 31 | + runs-on: windows-latest |
41 | 32 | strategy: |
42 | | - matrix: |
43 | | - BUILD_CONFIGURATION: ['Debug', 'Release'] |
| 33 | + matrix: |
| 34 | + BUILD_CONFIGURATION: [Debug, Release] |
44 | 35 | steps: |
45 | | - - uses: actions/checkout@v2 |
46 | | - |
47 | | - - name: Add MSBuild to PATH |
48 | | - |
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