forked from EZForever/UDPWiiHook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
env: | ||
SOLUTION_FILE_PATH: .\UDPWiiHook.sln | ||
BUILD_CONFIGURATION: Release | ||
PLATFORM: Any CPU | ||
RUN_NUMBER: ${{github.run_number}} | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
jobs: | ||
Build: | ||
if: "contains(github.event.head_commit.message, '[build]')" | ||
name: Build | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout UDPWiiHook repository | ||
uses: actions/[email protected] | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install MSBuild x64 | ||
uses: microsoft/setup-msbuild@v2 | ||
with: | ||
msbuild-architecture: x64 | ||
|
||
- name: Build UDPWiiHook solution | ||
working-directory: .\ | ||
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform="${{env.PLATFORM}}" ${{env.SOLUTION_FILE_PATH}} | ||
|
||
- name: Upload UDPWiiHook latest artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: UDPWiiHook-${{env.RUN_NUMBER}} | ||
path: ./App/bin/Release/UDPWiiHook.exe | ||
if-no-files-found: error |