Skip to content

Commit

Permalink
Create basic-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
corne-ac authored Apr 17, 2024
1 parent 2f0718f commit 5efab80
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/basic-ci.yml
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 }}

0 comments on commit 5efab80

Please sign in to comment.