From 406cb20e23a5471c96c2a75813913d86fc33fe5a Mon Sep 17 00:00:00 2001 From: log1cs Date: Sat, 8 Oct 2022 22:50:21 +0700 Subject: [PATCH] NB1: Configure CI build --- .github/workflows/recovery.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/recovery.yml b/.github/workflows/recovery.yml index f1df14c2e..4c1c98b32 100644 --- a/.github/workflows/recovery.yml +++ b/.github/workflows/recovery.yml @@ -1,4 +1,4 @@ -name: Building TWRP Android 12.1 +name: Build TWRP for NB1 on: # release: @@ -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: @@ -43,8 +41,8 @@ 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 @@ -52,17 +50,16 @@ jobs: 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: |