Skip to content

Commit

Permalink
NB1: Configure CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
log1cs committed Oct 8, 2022
1 parent aff0eac commit 406cb20
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/recovery.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Building TWRP Android 12.1
name: Build TWRP for NB1

on:
# release:
Expand All @@ -18,12 +18,10 @@ on:

env:
MANIFEST: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-12.1
DEVICE: cheeseburger
DT_LINK: https://github.com/faoliveira78/android_device_oneplus_cheeseburger -b android-12.1
DT_PATH: device/oneplus/cheeseburger
KERNEL_LINK: https://github.com/LineageOS/android_kernel_oneplus_msm8998 -b lineage-19.1
KERNEL_PATH: kernel/oneplus/msm8998
TARGET: recoveryimage
DEVICE: NB1
DT_LINK: https://github.com/log1cs/android_device_nokia_msm8998-twrp -b NB1
DT_PATH: device/nokia/NB1
TARGET: bootimage
TZ: America/Brazil

jobs:
Expand All @@ -43,26 +41,25 @@ jobs:
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d
docker rmi `docker images -q`
sudo apt-get remove account-plugin-facebook account-plugin-flickr account-plugin-jabber account-plugin-salut account-plugin-twitter account-plugin-windows-live account-plugin-yahoo aisleriot brltty duplicity empathy empathy-common example-content gnome-accessibility-themes gnome-contacts gnome-mahjongg gnome-mines gnome-orca gnome-screensaver gnome-sudoku gnome-video-effects gnomine landscape-common libreoffice-avmedia-backend-gstreamer libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk libreoffice-impress libreoffice-math libreoffice-ogltrans libreoffice-pdfimport libreoffice-style-galaxy libreoffice-style-human libreoffice-writer libsane libsane-common mcp-account-manager-uoa python3-uno rhythmbox rhythmbox-plugins rhythmbox-plugin-zeitgeist sane-utils shotwell shotwell-common telepathy-gabble telepathy-haze telepathy-idle telepathy-indicator telepathy-logger telepathy-mission-control-5 telepathy-salut totem totem-common totem-plugins printer-driver-brlaser printer-driver-foo2zjs printer-driver-foo2zjs-common printer-driver-m2300w printer-driver-ptouch printer-driver-splix
git config --global user.name "Fernando Oliveira"
git config --global user.email "fernandoaju78@gmail.com"
git config --global user.name "Log1cs"
git config --global user.email "tuan73176@gmail.com"
sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* php*
sudo -E apt-get clean
sudo -E apt-get -qq update
sudo -E apt-get -qq install bc build-essential zip curl libstdc++6 git wget python gcc clang libssl-dev repo rsync flex bison aria2 libncurses5 libncurses5-dev
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: Sync TWRP A12.1 source device tree and Kernel
- name: Syncing TWRP source + device tree + kernel
run: |
mkdir work
cd work
repo init -u $MANIFEST --depth=1 --groups=all,-notdefault,-device,-darwin,-x86,-mips
repo sync -j4
cd bootable/recovery
git fetch https://gerrit.twrp.me/android_bootable_recovery refs/changes/05/5405/5 && git cherry-pick FETCH_HEAD
cd /home/runner/work/android_device_oneplus_cheeseburger/android_device_oneplus_cheeseburger/work
git fetch https://github.com/Niemandausduisburg/android_bootable_recovery && git cherry-pick b456021e3e28866a60789ded334a9f5a02eb6bae
cd ../../
git clone $DT_LINK --depth=1 --single-branch $DT_PATH
git clone $KERNEL_LINK --depth=1 --single-branch $KERNEL_PATH
- name: Building TWRP
run: |
Expand Down

0 comments on commit 406cb20

Please sign in to comment.