Merge branch 'develop' of https://github.com/CosmicPredator/AniMoe in… #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: Development Build | |
on: | |
push: | |
branches: [ develop ] | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
MSBuild: | |
strategy: | |
matrix: | |
configuration: [ Release ] | |
platform: [ x86, x64, ARM64 ] | |
runs-on: windows-latest | |
env: | |
winui_labs_index: https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-Labs/nuget/v3/index.json | |
solution_name: AniMoe.sln | |
output_dir: output\ | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET8.0 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v2 | |
- name: Add CommunityToolkit.Labs.WinUI NuGet Source | |
run: dotnet nuget add source $env:winui_labs_index -n CommunityToolkitLabs | |
- name: msbuild restore | |
run: msbuild $env:solution_name /t:Restore /p:Configuration=$env:configuration | |
env: | |
configuration: ${{ matrix.configuration }} | |
- name: msbuild build solution | |
run: msbuild $env:solution_name /p:Configuration=$env:configuration | |
/p:Platform=$env:platform | |
/p:OutDir=$env:output_dir | |
env: | |
configuration: ${{ matrix.configuration }} | |
platform: ${{ matrix.platform }} | |
- name: Create Windows Installer | |
uses: Minionguyjpro/[email protected] | |
with: | |
path: installer_scripts\animoe_setup.iss | |
options: /O+ | |
- name: Upload Installer Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Develop_${{ matrix.platform }} | |
retention-days: 10 | |
path: | | |
${{ github.workspace }}\AniMoe_setup.exe | |
${{ github.workspace }}\AniMoe.App\output\* | |