Add GitLab CI (builds w/ dotnet on Linux)

This commit is contained in:
YoshiRulz 2019-12-26 16:57:40 +10:00
parent 2e8e2bfab4
commit 09595fef9e
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 33 additions and 0 deletions

33
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,33 @@
image: microsoft/dotnet:latest
stages:
- build
- deploy
build:
artifacts:
expire_in: "30 minutes"
name: "BizHawk_tempbuild_$CI_COMMIT_REF_SLUG"
paths:
- output
when: always
script:
- dotnet build BizHawk.sln -c Release -m -p:MachineNuGetPackageDir=$HOME/.nuget/packages
stage: build
deploy_artifact:
artifacts:
expire_in: "1 month"
name: "BizHawk_devbuild_$CI_COMMIT_REF_SLUG"
paths:
- output
only:
- master
script:
- ''
stage: deploy
cache:
key: "$CI_COMMIT_REF_SLUG"
paths:
- packages