Rebrand, crash fix, and config layout update #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Program | |
on: | |
push: | |
branches: ["main"] | |
paths: | |
- "**.cs" | |
- "**.csproj" | |
- "**.resx" | |
- "**build.yml" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
config: [Debug, Release] | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Setup MSBuild path | |
uses: microsoft/setup-msbuild@v2 | |
- name: Setup NuGet | |
uses: nuget/setup-nuget@v2 | |
- name: Restore cached NuGet packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Restore solution (including NuGet packages for solution) | |
run: msbuild.exe /t:restore /p:RestoreLockedMode=true | |
- name: Build solution | |
run: msbuild.exe MSIFanControl.sln /nologo /nr:false /p:DeployOnBuild=true /p:platform="Any CPU" /p:configuration="${{ matrix.config }}" | |
- name: Copy fan configs to build path | |
run: mkdir MSIFanControl.GUI\bin\${{ matrix.config }}\net48\Configs && copy Configs\* MSIFanControl.GUI\bin\${{ matrix.config }}\net48\Configs | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "MSIFanControl-${{ matrix.config }}" | |
path: "./MSIFanControl.GUI/bin/${{ matrix.config }}/net48/" | |
compression-level: 9 |