Skip to content

Update ci-build.yml

Update ci-build.yml #2

Workflow file for this run

# this is based on https://github.com/irongut/MauiBeach/blob/master/.github/workflows/ci-build.yml
# this might be useful, too:
# https://github.com/dotnet/maui-samples/blob/main/8.0/Apps/WeatherTwentyOne/devops/GitHubActions/
name: CI Build
on:
push:
pull_request:
branches:
- main
- ci-cd
# push:
# # this will trigger a build on any tag push - you can optionally specify a tag format here
# tags:
# - "*"
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 Android Build
build-android:
runs-on: ubuntu-latest
name: Build
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Setup .NET according to global.json
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
with:
global-json-file: global.json
- name: Install MAUI Workload
run: dotnet workload install maui
- name: Restore Dependencies
run: dotnet build src/The49.Maui.BottomSheet.csproj