-
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
Showing
1 changed file
with
37 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,37 @@ | ||
# This GitHub Action builds a .NET MAUI project for all targeted platforms | ||
# The workflow can be triggered manually, is triggered on a git push or | ||
# when a PR is opened that targets the main branch. | ||
# This just verifies the project builds, no artifacts are being uploaded or can be retrieved. | ||
|
||
name: Build .NET MAUI Project | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ "main" ] | ||
paths-ignore: | ||
- "**.md" | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
# Customize with your own values here | ||
env: | ||
BUILD_CONFIGURATION: Release | ||
DOTNET_VERSION: 8.0.x | ||
CSPROJ_TO_BUILD: EkseemMaarNet.csproj | ||
|
||
jobs: | ||
build-ci: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- 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 ${{ env.CSPROJ_TO_BUILD }} | ||
- name: Build ${{ env.CSPROJ_TO_BUILD }} | ||
run: dotnet build ${{ env.CSPROJ_TO_BUILD }} -c ${{ env.BUILD_CONFIGURATION }} |