Update Readme & Code cleanup #28
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: Windows GUI | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET 8.0.x | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v2 | |
- name: Setup NuGet | |
uses: NuGet/setup-nuget@v2.0.0 | |
- name: Restore dependencies | |
run: nuget restore CheckIP.Windows\CheckIP.sln | |
- name: Build (x86) | |
run: msbuild.exe CheckIP.Windows\CheckIP.sln /p:platform="x86" /p:configuration="Release" | |
- name: Build (x64) | |
run: msbuild.exe CheckIP.Windows\CheckIP.sln /p:platform="x64" /p:configuration="Release" | |
- name: Create Setup file (x86) | |
run: | | |
"%programfiles(x86)%\\Inno Setup 6\\iscc.exe" "CheckIP.Windows\Setup\ISS\x86.iss" | |
shell: cmd | |
- name: Create Setup file (x64) | |
run: | | |
"%programfiles(x86)%\\Inno Setup 6\\iscc.exe" "CheckIP.Windows\Setup\ISS\x64.iss" | |
shell: cmd | |
- name: Upload setup artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: CheckIP binaries | |
path: CheckIP.Windows\Setup\* |