Skip to content

Commit

Permalink
Add autobuild
Browse files Browse the repository at this point in the history
[build]
  • Loading branch information
BennyExtreme committed Feb 17, 2024
1 parent 7e5d8e7 commit 407a9db
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/main.yml
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

0 comments on commit 407a9db

Please sign in to comment.