forked from maplibre/maplibre-native
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (68 loc) · 2.36 KB
/
android-testapp-release.yml
File metadata and controls
81 lines (68 loc) · 2.36 KB
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: android-testapp-release
permissions:
contents: write
on:
workflow_dispatch:
jobs:
create-android-testapp-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
with:
persist-credentials: false
- name: Create Release
run: |
gh release create android-testapp-${{ github.sha }} \
--draft=true \
--prerelease=false \
--latest=false \
--title android-testapp-${{ github.sha }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
android-build-testapp:
needs: [create-android-testapp-release]
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
renderer: [opengl, vulkan]
defaults:
run:
working-directory: platform/android
env:
BUILDTYPE: Debug
IS_LOCAL_DEVELOPMENT: false
MLN_ANDROID_STL: c++_static
SENTRY_ORG: maplibre
SENTRY_PROJECT: maplibre-android
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN_ANDROID }}
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
with:
submodules: recursive
persist-credentials: false
- uses: ./.github/actions/setup-android-ci
- run: ./gradlew assemble${{ matrix.renderer }}Release
- name: Install sentry-cli
run: curl -sL https://sentry.io/get-cli/ | sh
- name: Upload debug symbols to sentry
run: sentry-cli debug-files upload MapLibreAndroidTestApp
- name: Upload test app
run: |
gh release upload android-testapp-${{ github.sha }} MapLibreAndroidTestApp/build/outputs/apk/${{ matrix.renderer }}/release/MapLibreAndroidTestApp-${{ matrix.renderer }}-release.apk
env:
GH_TOKEN: ${{ github.token }}
finish-android-testapp-release:
needs: [android-build-testapp]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
with:
persist-credentials: false
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
- name: Finalize release (set draft=false)
run: |
gh release edit android-testapp-${{ github.sha }} --draft=false
env:
GH_TOKEN: ${{ github.token }}