Skip to content

Merge pull request #234 from manuc66/dependabot/nuget/ImgTagFanOut/mu… #487

Merge pull request #234 from manuc66/dependabot/nuget/ImgTagFanOut/mu…

Merge pull request #234 from manuc66/dependabot/nuget/ImgTagFanOut/mu… #487

Workflow file for this run

name: Build Installer
on: push
jobs:
build-linux:
name: Build for Linux
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build
build-macos:
name: Build for MacOs
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore dependencies
run: dotnet restore
- name: Build
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@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Cache NuGet packages
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build
- 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@v4
with:
path: InstallerOutput/ImgTagFanOut-installer.exe