Skip to content

Commit

Permalink
Merge pull request #161 from hubastard/initial-ci-workflow
Browse files Browse the repository at this point in the history
Add workflow yml for GitHub Actions/CI
  • Loading branch information
Mushroom authored Apr 16, 2021
2 parents 893f5e8 + f4536ee commit d358a6a
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build-winx64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build - Win x64

on:
push:
branches: [ master ]
pull_request_review:
types: [ submitted ]

jobs:

build:
strategy:
matrix:
configuration: [Debug, Release]

# We *only* want to run this if a collaborator or owner of the repo approves a pull request, or if something is merged into the main branch
if: ${{ github.event.ref == 'refs/heads/master' || (github.event.review.state == 'approved' && (github.event.review.author_association == 'COLLABORATOR' || github.event.review.author_association == 'OWNER')) }}
runs-on: dsp-installed

env:
Solution_Name: Nebula.sln

steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Clear output directory in DSP files
# We use SilentlyContinue here because it errors out of the folder does not exist otherwise
run: rm -R -ErrorAction SilentlyContinue "C:\Program Files (x86)\Steam\steamapps\common\Dyson Sphere Program\BepInEx\plugins\Nebula"

# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]

# Build it
- name: Build the application
run: msbuild $env:Solution_Name /restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}

# Upload it to the run results
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# Artifact name
name: build-artifacts
# A file, directory or wildcard pattern that describes what to upload
path: C:\Program Files (x86)\Steam\steamapps\common\Dyson Sphere Program\BepInEx\plugins\Nebula

0 comments on commit d358a6a

Please sign in to comment.