-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (38 loc) · 1.34 KB
/
android-build.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
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Build Android
on:
push:
branches-ignore: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Setup MAUI android
run: dotnet workload install android
# When running on a self hosted mac runner, the ios workload needs to be installed due to csproj configuration
- name: Setup MAUI iOS
if: ${{ runner.os == 'macOS' }}
run: dotnet workload install ios
- name: Setup MAUI
run: dotnet workload restore
- name: Restore dependencies
run: dotnet restore -p:TargetFramework=net9.0-android
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: "microsoft"
java-version: "17"
- name: Setup Android SDK Tools
uses: android-actions/[email protected]
- name: Build Tailwind
run: npm i && npm run build
working-directory: ./LiftLog.Ui
- name: Build
run: dotnet build -p:TargetFramework=net9.0-android -f net9.0-android -p:BuildFor=android
working-directory: ./LiftLog.Maui