Skip to content

Commit

Permalink
Add automated builds for Aurie (#1)
Browse files Browse the repository at this point in the history
* Lets see what this builds

* Okay maybe now we build AurieInstaller

* oh god damnit I forgot a dollar sign

I swear why can't we use euros

* maybe?
  • Loading branch information
Archie-osu authored Nov 20, 2023
1 parent 8ada96f commit e888542
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: MSBuild

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .

# 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: Release

permissions:
contents: read

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Add MSBuild to PATH
uses: microsoft/[email protected]

- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}

- 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}} ${{env.SOLUTION_FILE_PATH}}
- name: Publish AurieInstaller
working-directory: ${{env.GITHUB_WORKSPACE}}
run: dotnet publish /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:PublishSingleFile=true /p:SelfContained=false AurieInstaller

- name: Create release artifact
uses: actions/upload-artifact@v3
with:
name: Aurie Build (x64, Release)
path: |
.\x64\${{env.BUILD_CONFIGURATION}}
.\AurieInstaller\bin\${{env.BUILD_CONFIGURATION}}\net7.0-windows\win-x64\publish\

0 comments on commit e888542

Please sign in to comment.