forked from imurvai/brickcontroller2
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.12 KB
/
build-android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Build
on:
push:
branches:
- master
- '*'
paths-ignore:
- '**/*.md'
- '**/*.gitignore'
- '**/*.gitattributes'
pull_request:
branches:
- main
- '*'
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: mauibeach-android-ci-build
path: BrickController2/BrickController2.Android/bin/Release/net8.0-android/*Signed.a*