forked from SA-17/Recovery_builder
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.75 KB
/
recovery.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
name: Build recovery(twrp,shrp,pbrp)
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-18.04
steps:
- name: Init the System
uses: actions/checkout@master
- name: remove pkg and setting repo
run: |
sudo apt update && sudo apt install wget zip
wget -qO - https://github.com/SA-17/Recovery_builder/raw/main/scripts/cleanup.sh | bash
sudo -E apt-get -qq update
sudo -E apt-get -qq install bc build-essential tar zip curl libstdc++6 git wget python gcc clang libssl-dev repo rsync flex curl bison aria2
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo
sudo chmod a+rx /usr/local/bin/repo
- name: Adding and Sync source
run: |
source config.sh
mkdir work
cd work
repo init -u $MANIFEST -b $BRANCH --depth=1
repo sync -c -j`nproc` --force-sync --no-clone-bundle --no-tags
git clone $DT_LINK -b $DT_BRANCH device/$VENDOR/$DEVICE
- name: Build recovery
run: |
source config.sh
cd work
. build/envsetup.sh && lunch $TYPE$SYM$DEVICE-eng && export ALLOW_MISSING_DEPENDENCIES=true && mka $TARGET -j`nproc`
- name: Making file
run: |
source config.sh
cd work
wget -qO - https://github.com/SA-17/Recovery_builder/raw/main/scripts/bake.sh | bash
- name: Release recovery
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.run_id }}
name: recovery image
files: work/recovery.zip