From 4019832382b6f631d9def1e0f2b25effc600e7bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Seyyid=20Yi=C4=9Fit?= Date: Thu, 22 Feb 2024 11:22:41 +0300 Subject: [PATCH] Create ci-build.yml --- .github/workflows/ci-build.yml | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/ci-build.yml diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml new file mode 100644 index 0000000..de1b22b --- /dev/null +++ b/.github/workflows/ci-build.yml @@ -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 + + - 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/MauiBeach*/MauiBeach*.msix