-
Notifications
You must be signed in to change notification settings - Fork 15
44 lines (35 loc) · 1.02 KB
/
msbuild.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: MSBuild
on:
push:
branches: [ "build" ]
pull_request:
branches: [ "build" ]
env:
SOLUTION_FILE_PATH: ./WRK-V1.2/WRK.sln
PREBUILD_SCRIPT_FILE_PATH: ./WRK-V1.2/PREBUILD.PY
OUTPUT_DIRECTORY: ./WRK-V1.2/BASE/NTOS/BUILD/EXE
BUILD_CONFIGURATION: x86
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.9
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: python ${{env.PREBUILD_SCRIPT_FILE_PATH}} && msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: Upload to GitHub Release
uses: xresloader/upload-to-github-release@main
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
file: "${{env.OUTPUT_DIRECTORY}}/wrkx86.*"
overwrite: true
verbose: true