-
-
Notifications
You must be signed in to change notification settings - Fork 7
59 lines (48 loc) · 1.58 KB
/
Copy pathci.yml
File metadata and controls
59 lines (48 loc) · 1.58 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
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
actions: write
jobs:
build:
name: Build
runs-on: windows-latest
strategy:
matrix:
configuration: [Debug]
platform: [x86, x64, ARM64]
env:
Solution_Name: AuraClick.slnx
Appx_Package_Dir: Packages\
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v3
- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Create the app package
run: msbuild $env:Solution_Name /p:Configuration=$env:Configuration /p:Platform=$env:Platform /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:AppxPackageDir="$env:Appx_Package_Dir" /p:GenerateAppxPackageOnBuild=true
env:
Appx_Bundle: Always
Appx_Bundle_Platforms: x86|x64|ARM64
Appx_Package_Build_Mode: SideloadOnly
Configuration: ${{ matrix.configuration }}
Platform: ${{ matrix.platform }}
AppInstallerUri: https://cdn.auraclick.app
- name: Upload MSIX package
uses: actions/upload-artifact@v7
with:
name: MSIX Package (${{ matrix.configuration }}, ${{ matrix.platform }})
path: ${{ env.Appx_Package_Dir }}
if-no-files-found: error