1
0
mirror of https://github.com/blawar/ooot.git synced 2024-07-05 10:33:36 +00:00
ooot/.github/workflows/msbuild.yml
2022-03-27 19:56:10 -04:00

41 lines
1.2 KiB
YAML

name: Build
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
env:
# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: Debug
jobs:
build:
runs-on: self-hosted
steps:
- name: Cleanup
run: Remove-Item ooot -Recurse -Force -ErrorAction SilentlyContinue
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Copy roms Folder
run: Remove-Item roms -Recurse -Force -ErrorAction SilentlyContinue ; cp -r ../roms .
- name: Extract Assets
run: python setup.py -b EUR_MQD
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} vs/OOT.sln