-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMatrix-Flow.yml
More file actions
74 lines (63 loc) · 2.01 KB
/
Matrix-Flow.yml
File metadata and controls
74 lines (63 loc) · 2.01 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
name: Automated Matrix Flow
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:
jobs:
matrix-ci:
runs-on: ubuntu-latest
env:
MATRIX_HOMESERVER: ${{ secrets.MATRIX_HOMESERVER }}
MATRIX_USERNAME: ${{ secrets.MATRIX_USERNAME }}
MATRIX_PASSWORD: ${{ secrets.MATRIX_PASSWORD }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Matrix automation script
run: |
python matrix_flow.py
env:
MATRIX_HOMESERVER: ${{ secrets.MATRIX_HOMESERVER }}
MATRIX_USERNAME: ${{ secrets.MATRIX_USERNAME }}
MATRIX_PASSWORD: ${{ secrets.MATRIX_PASSWORD }}
- name: Upload workflow logs (on failure)
if: failure()
uses: actions/upload-artifact@v4
with:
name: matrix-logs
path: ./logs/
android10-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 11 for Android 10 compatibility
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Build Android 10 APK
run: |
./gradlew assembleRelease --stacktrace
env:
ANDROID_HOME: ${{ secrets.ANDROID_HOME }}
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: android10-apk
path: app/build/outputs/apk/release/*.apk
# References
# - /reference vault: GitHub Actions best practices, Matrix automation standards, Android 10/JDK compatibility.
# - https://docs.github.com/en/actions
# - https://matrix.org/docs/guides/python-bot-sdk
# - https://developer.android.com/studio/build