-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (62 loc) · 1.93 KB
/
Copy pathbuild.yml
File metadata and controls
76 lines (62 loc) · 1.93 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
68
69
70
71
72
73
74
75
76
name: Build
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
workflow_dispatch:
jobs:
build-app:
name: Build app (sanity check)
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Build WPF app
run: dotnet build InterlinedList/InterlinedList.csproj -c Release -r win-x64
build-msi:
name: Build MSI installer
runs-on: windows-latest
needs: build-app
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Publish app (installer payload)
run: dotnet publish InterlinedList/InterlinedList.csproj -c Release -r win-x64 --self-contained -p:PublishSingleFile=false
- name: Build MSI
run: dotnet build installer/InterlinedList.Installer.wixproj -c Release
- name: Upload MSI artifact
uses: actions/upload-artifact@v4
with:
name: InterlinedList-Setup-msi
path: installer/bin/**/*.msi
if-no-files-found: error
build-msix:
name: Build MSIX (Store package)
runs-on: windows-latest
needs: build-app
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- uses: microsoft/setup-msbuild@v2
- name: Build MSIX package
run: >-
msbuild InterlinedList.Package/InterlinedList.Package.wapproj
/restore
/p:Configuration=Release
/p:Platform=x64
/p:AppxBundlePlatforms=x64
/p:AppxBundle=Always
/p:UapAppxPackageBuildMode=StoreUpload
- name: Upload MSIX artifact
uses: actions/upload-artifact@v4
with:
name: InterlinedList-Store-package
path: InterlinedList.Package/AppPackages/**
if-no-files-found: error