Skip to content

Add GH Action to build the app for Android (#90) #8

Add GH Action to build the app for Android (#90)

Add GH Action to build the app for Android (#90) #8

Workflow file for this run

name: Build BrickController Android
on:
push:
branches:
- default
- 'releases/**'
paths:
- '.github/**/*.yml'
- 'BrickController2/*.props'
- 'BrickController2/*.sln'
- 'BrickController2/BrickController2/**'
- 'BrickController2/BrickController2.Android/**'
pull_request:
branches:
- default
- 'releases/**'
paths:
- '.github/**/*.yml'
- 'BrickController2/*.props'
- 'BrickController2/*.sln'
- 'BrickController2/BrickController2/**'
- 'BrickController2/BrickController2.Android/**'
workflow_dispatch:
permissions:
contents: read
jobs:
build-android:
runs-on: windows-2022
name: BrickController Android Build
steps:
- uses: actions/checkout@v4
- name: Setup .NET
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 BrickController2/BrickController2.Android/BrickController2.Android.csproj
- name: Build MAUI Android
run: dotnet publish BrickController2/BrickController2.Android/BrickController2.Android.csproj -c Release -f net8.0-android --no-restore
- name: Upload Android Artifact
uses: actions/upload-artifact@v4
with:
name: brickcontroller-android-ci-build
path: BrickController2/BrickController2.Android/bin/Release/net8.0-android/*Signed.a*