-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.04 KB
/
build_apk.yaml
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
name: Build APK
env:
APKTOOL_VER: 2.7.0
on:
push:
branches:
- ANE-9.1.0.401
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'semeru'
java-version: '11'
- name: Install aapt2
run: sudo apt-get update && sudo apt-get install -y aapt
- uses: robinraju/release-downloader@v1.5
with:
repository: 'iBotPeaches/Apktool'
tag: 'v${{ env.APKTOOL_VER }}'
fileName: 'apktool_${{ env.APKTOOL_VER }}.jar'
- run: java -jar apktool_${{ env.APKTOOL_VER }}.jar b .
- name: Generate diff file with patches
run: |
REPO_NAME=$(basename "$GITHUB_REPOSITORY")
git diff $(git rev-list --max-parents=0 HEAD) -- . ':(exclude).github' > "${REPO_NAME}_patch.diff"
- uses: actions/upload-artifact@v3
with:
name: APK
path: dist/hwEmui.jar
- uses: actions/upload-artifact@v3
with:
name: Patch
path: "${{ github.repository }}_patch.diff"