Skip to content

update actions

update actions #7

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Build Workflow
on:
workflow_call: # Allows release.yml to call this workflow.
push:
branches: [ "pending-main", "main" ]
pull_request:
branches: [ "pending-main", "main" ]
jobs:
build:
name: Build and test
runs-on: windows-latest
timeout-minutes: 30
steps:
# Build and test
- uses: actions/checkout@v4
with:
lfs: 'true'
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.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: Build and test (no versioning)
run: ./build.ps1 --no-version
# Compile installer steps
- name: Compile Windows-x64 installer (test)
uses: Minionguyjpro/Inno-Setup-Action@v1.2.5
with:
path: ./src/DAZ_Installer.Installer/Windows64.iss
# Upload artifacts
- name: Upload installer artifact
uses: actions/upload-artifact@v4
with:
name: installer
path: src/DAZ_Installer.Installer/Output/*
if-no-files-found: error
retention-days: 3
- name: Upload Windows project binaries artifact
uses: actions/upload-artifact@v4
with:
name: windows-binaries
path: src/DAZ_Installer.Windows/bin/*
if-no-files-found: error
retention-days: 3