-
Notifications
You must be signed in to change notification settings - Fork 53
51 lines (43 loc) · 1.23 KB
/
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
43
44
45
46
47
48
49
50
51
name: Overlay
on:
workflow_dispatch:
inputs:
FORK_URL:
description: 'FORKED_URL'
required: true
default: 'https://github.com/phhusson/vendor_hardware_overlay'
jobs:
build:
if: github.event.repository.owner.id == github.event.sender.id
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@main
- name: Prepare the environment
run: |
sudo apt -y install git-core git xmlstarlet
sudo apt update
- name: Clone vendor_hardware_overlay
run: |
PATH=~/bin:$PATH
mkdir workspace
cd workspace
git clone ${{github.event.inputs.FORK_URL }}
- name: Run test scripts
run: |
PATH=~/bin:$PATH
cd workspace && cd vendor_hardware_overlay
git config --global user.name "Johx22"
git config --global user.email "[email protected]"
cd tests
bash tests.sh
- name: Build APK's
run: |
PATH=~/bin:$PATH
cd workspace && cd vendor_hardware_overlay && cd build
bash build.sh
- name: Upload APK
uses: actions/[email protected]
with:
path: workspace/vendor_hardware_overlay/build/*.apk
name: Overlays