Skip to content

Commit

Permalink
create msbuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ranni0225 authored Aug 22, 2023
1 parent bb60cc3 commit 6c00f09
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 6c00f09

Please sign in to comment.