-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0ac12b
commit 5f7cbe0
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 --runtime win-x64 | ||
|
||
- name: Build MAUI Windows | ||
run: dotnet publish src/HuaweiHMSInstaller.csproj -c Release -f net8.0-windows10.0.19041.0 -p:RuntimeIdentifierOverride=win10-x64 --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/HuaweiHMSInstaller*/HuaweiHMSInstaller*.msix |