1
0
mirror of https://github.com/blawar/ooot.git synced 2024-06-30 16:29:55 +00:00

Added github actions for building (#161)

* Added workflow file for github actions that clones and builds the repo for every push on `master`.

* Updated workflow file.

Co-authored-by: DaMarkov <DaMarkovZED@gmail.com>
This commit is contained in:
DaMarkov 2022-02-19 17:20:52 +01:00 committed by GitHub
parent 0d14e3efc5
commit d8ccb56192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

37
.github/workflows/msbuild.yml vendored Normal file
View File

@ -0,0 +1,37 @@
name: Build
on:
push:
branches: [ master ]
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-master -Recurse -Force -ErrorAction SilentlyContinue
- name: Clone OOT
run: git clone --recursive https://github.com/blawar/ooot.git ooot-master
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Copy roms Folder
run: cd ooot-master ; Remove-Item roms -Recurse -Force -ErrorAction SilentlyContinue ; cp -r ../roms .
- name: Extract Assets
run: cd ooot-master ; 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: cd ooot-master ; msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} vs/OOT.sln