forked from CPH1859/Recovery-Builder
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,14 +10,13 @@ on: | |
# - '.config' | ||
# schedule: | ||
# - cron: 0 8 * * 5 | ||
watch: | ||
types: [started] | ||
workflow_dispatch: | ||
|
||
env: | ||
MANIFEST: https://gitlab.com/OrangeFox/Manifest.git | ||
DEVICE: rosy | ||
DT_LINK: https://github.com/ElytrA8/recovery_rosy | ||
DT_PATH: device/xiaomi/rosy | ||
MANIFEST: https://github.com/GalaxyM21-Development/platform_manifest_twrp_omni | ||
DEVICE: m21 | ||
DT_LINK: https://github.com/GalaxyM21-Development/android_device_samsung_m21-TWRP | ||
DT_PATH: device/samsung/m21 | ||
TARGET: recoveryimage | ||
TZ: Asia/Kolkata | ||
|
||
|
@@ -35,8 +34,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 "ElytrA8" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Ayush" | ||
git config --global user.email "[email protected]" | ||
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 | ||
|
@@ -48,17 +47,21 @@ jobs: | |
run: | | ||
mkdir work | ||
cd work | ||
repo init -u $MANIFEST --depth=1 --groups=all,-notdefault,-device,-darwin,-x86,-mips | ||
repo sync -j4 | ||
repo init -u $MANIFEST -b twrp-10.0 --depth=1 | ||
repo sync -c -j4 --force-sync --no-clone-bundle --no-tags | ||
git clone $DT_LINK --depth=1 --single-branch $DT_PATH | ||
- name: Build | ||
run: | | ||
cd work | ||
. build/envsetup.sh &&lunch omni_$DEVICE-eng &&export ALLOW_MISSING_DEPENDENCIES=true && mka $TARGET | ||
- name: Upload recovery image | ||
run: | | ||
cd work/out/target/product/$DEVICE | ||
curl -sL https://git.io/file-transfer | sh | ||
./transfer wet *.zip | ||
- name: Release recovery image | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: 3.4.0 | ||
files: | | ||
work/out/target/product/m21/recovery.img | ||