-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.3 KB
/
ci-build.yml
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
name: CI Build
on:
push:
branches: [ master ]
paths-ignore:
- '**/*.md'
- '**/*.gitignore'
- '**/*.gitattributes'
pull_request:
branches: [ master ]
workflow_dispatch:
permissions:
contents: read
env:
DOTNET_NOLOGO: true # Disable the .NET logo
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Disable the .NET first time experience
DOTNET_CLI_TELEMETRY_OPTOUT: true # Disable sending .NET CLI telemetry
jobs:
# MAUI Windows Build
build-windows:
runs-on: windows-2022
name: Windows Build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install MAUI Workload
run: dotnet workload install maui --ignore-failed-sources
- name: Restore Dependencies
run: dotnet restore src/HuaweiHMSInstaller.csproj
- name: Build MAUI Windows
run: dotnet publish src/HuaweiHMSInstaller.csproj -c Release -f net8.0-windows10.0.19041.0 --no-restore
- name: Upload Windows Artifact
uses: actions/upload-artifact@v4
with:
name: mauibeach-windows-ci-build
path: src/bin/Release/net8.0-windows10.0.19041.0/win10-x64/AppPackages/MauiBeach*/MauiBeach*.msix