Skip to content

Commit

Permalink
fix: update sample pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
exendahal committed Sep 14, 2024
1 parent 34d00d2 commit c22bc99
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/sample-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,28 @@ on:
- "main"
- "develop"

env:
BUILD_CONFIGURATION: Release
DOTNET_VERSION: 8.0.x
CSPROJ_TO_BUILD: DemoApp.csproj
jobs:
build-sample-ci:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: dotnet build samples\DemoApp.sln -c Release

- name: Setup .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Install .NET MAUI Workload
run: dotnet workload install maui

- name: Restore dependencies
run: dotnet restore samples\${{ env.CSPROJ_TO_BUILD }}

- name: Build Demo App ${{ env.CSPROJ_TO_BUILD }}
run: dotnet build samples\${{ env.CSPROJ_TO_BUILD }} -c ${{ env.BUILD_CONFIGURATION }} -f:net8.0-android

0 comments on commit c22bc99

Please sign in to comment.