Skip to content

Commit

Permalink
GitHub Actions CI, take one
Browse files Browse the repository at this point in the history
- Set up GitHub Actions to build the project on push to main branch.
- Please don't break.
  • Loading branch information
Sparronator9999 authored Jul 14, 2024
1 parent 25b5341 commit e229a99
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Program

on:
push:
branches: ["main"]

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

runs-on: windows-latest

steps:
- name: Checkout Code
uses: actions/checkout@v1

- name: Setup MSBuild Path
uses: microsoft/setup-msbuild@v2

- name: Setup NuGet
- uses: nuget/setup-nuget@v2

- name: Restore NuGet Packages
run: nuget restore MSIFanControl.sln

- name: Build Solution
run: |
msbuild.exe MSIFanControl.sln /nologo /nr:false /p:DeployOnBuild=true /p:platform="Any CPU" /p:configuration="$env:Configuration"
env:
Configuration: ${{ matrix.Configuration }}

- name: Upload Artifact
uses: actions/upload-artifact@v1.0.0
with:
name: "MSIFanControl-${{ matrix.Configuration }}"
path: "./MSIFanControl.GUI/bin/${{ matrix.Configuration }}/"
compression-level: 9

0 comments on commit e229a99

Please sign in to comment.