GitHub Actions CI, take 2 #2
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"] | |
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="${{ matrix.configuration }}" | |
- name: Upload Artifact | |
uses: actions/[email protected] | |
with: | |
name: "MSIFanControl-${{ matrix.configuration }}" | |
path: "./MSIFanControl.GUI/bin/${{ matrix.configuration }}/" | |
compression-level: 9 |