forked from ThreeDeeJay/unreal-vr
-
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.
Compile and upload artifact on every push
Added GitHub actions workflow to automatically build Windows x64 binaries of every commit and upload artifacts so they can be downloaded.
- Loading branch information
1 parent
06c62a2
commit 7cca4d8
Showing
1 changed file
with
40 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,40 @@ | ||
name: Build | ||
|
||
on: | ||
push | ||
|
||
env: | ||
SOLUTION_FILE_PATH: UnrealVR.sln | ||
BUILD_CONFIGURATION: Release | ||
|
||
jobs: | ||
Win64: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: True | ||
|
||
- name: Add MSBuild to PATH | ||
uses: microsoft/setup-msbuild@v1.0.2 | ||
|
||
- name: Restore NuGet packages | ||
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
run: nuget restore ${{env.SOLUTION_FILE_PATH}} | ||
|
||
- name: Build | ||
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=x64 /p:ErrorOnDuplicatePublishOutputFiles=false ${{env.SOLUTION_FILE_PATH}} | ||
|
||
- name: Upload a Build Artifact | ||
uses: actions/upload-artifact@v3.1.1 | ||
with: | ||
name: "UnrealVR" | ||
path: "${{github.workspace}}/x64/Release/" | ||
|
||
- name: Upload a Build Artifact | ||
uses: actions/upload-artifact@v3.1.1 | ||
with: | ||
name: "UnrealVRLauncher" | ||
path: "${{github.workspace}}/UnrealVRLauncher/bin/x64/Release/" |