Skip to content

Commit

Permalink
Workflow for automatic binary builds
Browse files Browse the repository at this point in the history
  • Loading branch information
scarletcafe committed Feb 27, 2022
1 parent 00bef7f commit 19b2bb6
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build

on:
push:
pull_request:
types: [ opened, edited ]

jobs:
build-dotnet-framework:
runs-on: windows-latest
name: .NET Framework 4.7.2
steps:

- uses: actions/checkout@v2

- name: Set up NuGet
uses: NuGet/[email protected]

- name: Restore NuGet packages
run: |
nuget restore VRCFaceTracking.sln
- name: Build solution
run: |
$MS_BUILD_PATH = Split-Path (& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -requires Microsoft.Component.MSBuild -find MSBuild\Current\Bin\amd64\MSBuild.exe | Select-Object -First 1) -Parent
$env:PATH = $MS_BUILD_PATH + ';' + $env:PATH
foreach ($config in 'Debug', 'Release') {
Write-Host "Building $config";
msbuild -v:m -m -restore -t:Build -p:Configuration=$config -p:TargetFramework=net472 VRCFaceTracking/VRCFaceTracking.csproj
}
- name: Capture version
id: versioning
run: |
echo "::set-output name=VERSION::$(Get-Date -Format "yyyy.MM.dd").$(git rev-parse --short HEAD)"
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: VRCFaceTracking_dev_${{ steps.versioning.outputs.VERSION }}
path: VRCFaceTracking/bin/*

0 comments on commit 19b2bb6

Please sign in to comment.