Update PitchBlack-PBRP.yml
This commit is contained in:
parent
0a3c44f3ea
commit
4977c5d2d5
18
.github/workflows/PitchBlack-PBRP.yml
vendored
18
.github/workflows/PitchBlack-PBRP.yml
vendored
@ -96,26 +96,29 @@ jobs:
|
|||||||
- name: Initialize Repo
|
- name: Initialize Repo
|
||||||
run: |
|
run: |
|
||||||
mkdir android-recovery
|
mkdir android-recovery
|
||||||
cd android-recovery
|
pushd android-recovery
|
||||||
git config --global user.name "${{ github.actor }}"
|
git config --global user.name "${{ github.actor }}"
|
||||||
git config --global user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
|
git config --global user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
|
||||||
repo init --depth=1 -u https://github.com/PitchBlackRecoveryProject/manifest_pb.git -b ${{ inputs.MANIFEST_BRANCH }}
|
repo init --depth=1 -u https://github.com/PitchBlackRecoveryProject/manifest_pb.git -b ${{ inputs.MANIFEST_BRANCH }}
|
||||||
|
popd
|
||||||
|
|
||||||
- name: Repo Sync
|
- name: Repo Sync
|
||||||
run: |
|
run: |
|
||||||
cd android-recovery
|
pushd android-recovery
|
||||||
repo sync -j$(nproc --all) --force-sync
|
repo sync -j$(nproc --all) --force-sync
|
||||||
|
popd
|
||||||
|
|
||||||
- name: Clone Device Tree
|
- name: Clone Device Tree
|
||||||
run: |
|
run: |
|
||||||
cd android-recovery
|
pushd android-recovery
|
||||||
git clone ${{ inputs.DEVICE_TREE }} -b ${{ inputs.DEVICE_TREE_BRANCH }} ./${{ inputs.DEVICE_PATH }}
|
git clone ${{ inputs.DEVICE_TREE }} -b ${{ inputs.DEVICE_TREE_BRANCH }} ./${{ inputs.DEVICE_PATH }}
|
||||||
cd ${{ inputs.DEVICE_PATH }}
|
cd ${{ inputs.DEVICE_PATH }}
|
||||||
echo "COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
echo "COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
||||||
|
popd
|
||||||
|
|
||||||
- name: Check Build Makefile
|
- name: Check Build Makefile
|
||||||
run: |
|
run: |
|
||||||
cd android-recovery
|
pushd android-recovery
|
||||||
if [ -f ${{ inputs.DEVICE_PATH }}/twrp_${{ inputs.DEVICE_NAME}}.mk ]; then
|
if [ -f ${{ inputs.DEVICE_PATH }}/twrp_${{ inputs.DEVICE_NAME}}.mk ]; then
|
||||||
echo "DEVICE_MAKEFILE=twrp_${{ inputs.DEVICE_NAME }}" >> $GITHUB_ENV
|
echo "DEVICE_MAKEFILE=twrp_${{ inputs.DEVICE_NAME }}" >> $GITHUB_ENV
|
||||||
elif [ -f ${{ inputs.DEVICE_PATH }}/omni_${{ inputs.DEVICE_NAME}}.mk ]; then
|
elif [ -f ${{ inputs.DEVICE_PATH }}/omni_${{ inputs.DEVICE_NAME}}.mk ]; then
|
||||||
@ -125,6 +128,7 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "No recovery makefile file found!"
|
echo "No recovery makefile file found!"
|
||||||
fi
|
fi
|
||||||
|
popd
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Installing python2 for legacy builds
|
- name: Installing python2 for legacy builds
|
||||||
@ -134,14 +138,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Fixed Missing Fonts
|
- name: Fixed Missing Fonts
|
||||||
run: |
|
run: |
|
||||||
cd android-recovery
|
pushd android-recovery
|
||||||
mkdir external/noto-fonts/other && cd external/noto-fonts/other
|
mkdir external/noto-fonts/other && cd external/noto-fonts/other
|
||||||
wget https://github.com/cd-Crypton/custom-recovery-extras/raw/main/missing-font.zip
|
wget https://github.com/cd-Crypton/custom-recovery-extras/raw/main/missing-font.zip
|
||||||
unzip -o missing-font.zip
|
unzip -o missing-font.zip
|
||||||
|
popd
|
||||||
|
|
||||||
- name: Building PitchBlack
|
- name: Building PitchBlack
|
||||||
run: |
|
run: |
|
||||||
cd android-recovery
|
pushd android-recovery
|
||||||
source build/envsetup.sh
|
source build/envsetup.sh
|
||||||
export ALLOW_MISSING_DEPENDENCIES=true
|
export ALLOW_MISSING_DEPENDENCIES=true
|
||||||
if [ ${{ env.DEVICE_MAKEFILE }} != "pbrp" ]; then
|
if [ ${{ env.DEVICE_MAKEFILE }} != "pbrp" ]; then
|
||||||
@ -149,6 +154,7 @@ jobs:
|
|||||||
else
|
else
|
||||||
lunch ${{ env.DEVICE_MAKEFILE }}-eng && mka ${{ inputs.BUILD_TARGET }}
|
lunch ${{ env.DEVICE_MAKEFILE }}-eng && mka ${{ inputs.BUILD_TARGET }}
|
||||||
fi
|
fi
|
||||||
|
popd
|
||||||
|
|
||||||
- name: Set Build Date # Needed for gh-releases
|
- name: Set Build Date # Needed for gh-releases
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user