sharplier #297
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 Installer | |
on: push | |
jobs: | |
build-linux: | |
name: Build for Linux | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0 | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Restore dependencies | |
run: dotnet build | |
build-macos: | |
name: Build for MacOs | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0 | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Restore dependencies | |
run: dotnet build | |
build-windows: | |
name: Build for windows with the Inno Setup Installer | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0 | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Publish | |
run: dotnet publish -c Release -p:PublishProfile=FolderProfile.pubxml ImgTagFanOut\ImgTagFanOut.csproj | |
- name: Compile .ISS to .EXE Installer | |
uses: Minionguyjpro/[email protected] | |
with: | |
path: setupScript.iss | |
options: /O+ | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: InstallerOutput/ImgTagFanOut-installer.exe |