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
name: miuicc9e_21.2.2_10 | ||
on: | ||
push: | ||
branches: [ "master" ] | ||
env: | ||
ROM_URL: https://bigota.d.miui.com/21.2.2/miui_LAURUS_21.2.2_bdf7ad0ddd_10.0.zip | ||
ROM_NAME: MIUI | ||
BUILD_AB: true | ||
BUILD_AONLY: false | ||
ROM_AONLY: VIOLET_20.11.17_aonly-Q.7z | ||
ROM_AB: miuicc9e_21.2.2_10.7z | ||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
#if: github.event.repository.owner.id == github.event.sender.id | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@master | ||
- name: Clean Up | ||
run: | | ||
docker rmi `docker images -q` | ||
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d | ||
sudo -E apt-get -y purge azure-cli #ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* #php* | ||
sudo -E apt-get update | ||
sudo -E apt-get -y autoremove --purge | ||
sudo -E apt-get clean | ||
- name: Initialization environment | ||
run: | | ||
sudo -E apt-get -qq update | ||
sudo -E apt-get -qq install git openjdk-8-jdk p7zip gzip | ||
- name: Clone ErfanGSI Source Code | ||
run: git clone --recurse-submodules https://github.com/lkx-0686/ErfanGSIs.git | ||
- name: Setting up ErfanGSI requirements | ||
run: | | ||
sudo chmod -R 777 ErfanGSIs | ||
cd ErfanGSIs | ||
git checkout 91fcdbb6cfba9f1378acac73050e72c3e7414368 | ||
sudo apt install -y python3-dev python3-pip #python-dev python-pip | ||
sudo bash setup.sh | ||
- name: Download Stock Rom & Generate Aonly GSI | ||
if: env.BUILD_AONLY == 'true' | ||
run: sudo ./ErfanGSIs/url2GSI.sh -a $ROM_URL $ROM_NAME | ||
- name: 7z Aonly GSI | ||
if: env.BUILD_AONLY == 'true' | ||
run: 7za a -t7z -r $ROM_AONLY ErfanGSIs/output/* | ||
- name: Upload Aonly GSI to WeTransfer | ||
if: env.BUILD_AONLY == 'true' | ||
run: | | ||
curl -sL https://git.io/file-transfer | sh | ||
./transfer wet $ROM_AONLY | ||
- name: Clear output | ||
if: env.BUILD_AB == 'true' | ||
run: sudo rm -rf ErfanGSIs/output/* | ||
- name: Download Stock Rom & Generate AB GSI | ||
if: env.BUILD_AB == 'true' | ||
run: sudo ./ErfanGSIs/url2GSI.sh -b $ROM_URL $ROM_NAME | ||
- name: 7z AB GSI | ||
if: env.BUILD_AB == 'true' | ||
run: 7za a -t7z -r $ROM_AB ErfanGSIs/output/* | ||
- name: Upload AB GSI to WeTransfer | ||
if: env.BUILD_AB == 'true' | ||
run: | | ||
curl -sL https://git.io/file-transfer | sh | ||
./transfer wet $ROM_AB | ||