forked from ahnet-69/treble_voltage
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial draft of vndklite adaptations
- Loading branch information
1 parent
ebe7fcd
commit e78a610
Showing
1 changed file
with
12 additions
and
8 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 |
---|---|---|
|
@@ -44,24 +44,28 @@ jobs: | |
- name: apply patches | ||
run: | | ||
./patches/apply.sh . trebledroid | ||
./patches/apply.sh . ponces | ||
./patches/apply.sh . personal | ||
- name: generate base rom config | ||
run: bash generate.sh Voltage | ||
working-directory: device/phh/treble | ||
- name: initialize ccache | ||
run: ccache -M 50G -F 0 | ||
- name: build gsi image | ||
- name: build standard gsi image | ||
run: | | ||
. build/envsetup.sh | ||
lunch treble_arm64_bvN-userdebug | ||
make systemimage -j"$(nproc --all)" | ||
- name: compress system.img with xz | ||
run: xz -9 -T0 -v -z system.img | ||
working-directory: out/target/product/tdgsi_arm64_ab | ||
- name: upload system.img to temp.sh | ||
run: curl -F "[email protected]" https://temp.sh/upload | ||
working-directory: out/target/product/tdgsi_arm64_ab | ||
- name: create vndklite image from standard image | ||
run: sudo bash lite-adapter.sh 64 out/target/product/tdgsi_arm64_ab/system.img | ||
- name: rename image files | ||
shell: | | ||
buildDate=$(date +%Y%m%d) | ||
mv -v out/target/product/tdgsi_arm64_ab/system.img VoltageOS-arm64-ab-3.1-"${buildDate}"-UNOFFICIAL.img | ||
mv -v s.img VoltageOS-arm64-ab-vndklite-3.1-"${buildDate}"-UNOFFICIAL.img | ||
- name: compress images with xz | ||
run: find . -name 'VoltageOS*.img' -maxdepth 1 -exec xz -9 -T0 -v -z "{}" \; | ||
- name: upload images to temp.sh | ||
run: find . -name 'VoltageOS*.img.xz' -maxdepth 1 -exec curl -F "file=@{}" https://temp.sh/upload | ||
- name: cleanup work directory | ||
uses: eviden-actions/clean-self-hosted-runner@v1 | ||
if: ${{ always() }} # Run even if previous steps in the job fail or are canceled |