Skip to content

Commit

Permalink
Initial draft of vndklite adaptations
Browse files Browse the repository at this point in the history
  • Loading branch information
cawilliamson committed Jan 20, 2024
1 parent ebe7fcd commit e78a610
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/build-gsi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e78a610

Please sign in to comment.