-
Notifications
You must be signed in to change notification settings - Fork 3
67 lines (53 loc) · 2.05 KB
/
ci_develop.yml
File metadata and controls
67 lines (53 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Development Build
on:
pull_request:
branches: [ develop ]
workflow_dispatch:
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/Inno-Setup-Action@v1.2.5
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\*