forked from trungnt2910/TimetableApp.Uno
-
Notifications
You must be signed in to change notification settings - Fork 2
81 lines (68 loc) · 2.3 KB
/
ci_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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: 'Build and publish Android applications'
on:
create:
branches:
- release/**
push:
branches:
- master
- dev/**
paths:
- TimetableApp/TimetableApp.Droid/**
- TimetableApp/TimetableApp.Shared/**
- .github/workflows/**
pull_request:
branches:
- master
paths:
- TimetableApp/TimetableApp.Droid/**
- TimetableApp/TimetableApp.Shared/**
- .github/workflows/**
jobs:
build:
env:
BUILD_CONFIG: 'Release'
PACKAGE_NAME: org.azureams.TimetableApp
name: Build app (Android)
# Also need to run on Windows Server 2022
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
- name: Setup MSBuild
uses: microsoft/[email protected]
with:
# Use Visual Studio 2022 or later to avoid some dumb JDK-related errors.
vs-version: '[17.0,)'
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Restore
run: nuget restore TimetableApp.Uno.sln
- name: Build
run: msbuild TimetableApp/TimetableApp.Droid/TimetableApp.Droid.csproj /p:Configuration=Release /p:AndroidBuildApplicationPackage=true
- name: Publish arm64 APK
uses: actions/upload-artifact@v2
with:
name: ${{ env.PACKAGE_NAME }}-arm64-v8a.apk
path: TimetableApp/TimetableApp.Droid/bin/Release/${{ env.PACKAGE_NAME }}-arm64-v8a-Signed.apk
- name: Publish arm APK
uses: actions/upload-artifact@v2
with:
name: ${{ env.PACKAGE_NAME }}-armeabi-v7a.apk
path: TimetableApp/TimetableApp.Droid/bin/Release/${{ env.PACKAGE_NAME }}-armeabi-v7a-Signed.apk
- name: Publish x86_64 APK
uses: actions/upload-artifact@v2
with:
name: ${{ env.PACKAGE_NAME }}-x86_64.apk
path: TimetableApp/TimetableApp.Droid/bin/Release/${{ env.PACKAGE_NAME }}-x86_64-Signed.apk
- name: Publish x86 APK
uses: actions/upload-artifact@v2
with:
name: ${{ env.PACKAGE_NAME }}-x86.apk
path: TimetableApp/TimetableApp.Droid/bin/Release/${{ env.PACKAGE_NAME }}-x86-Signed.apk
- name: Publish multiarch APK
uses: actions/upload-artifact@v2
with:
name: ${{ env.PACKAGE_NAME }}.apk
path: TimetableApp/TimetableApp.Droid/bin/Release/${{ env.PACKAGE_NAME }}-Signed.apk