diff --git a/.github/workflows/build-rom.yml b/.github/workflows/build-rom.yml index 35f057a..35022f8 100644 --- a/.github/workflows/build-rom.yml +++ b/.github/workflows/build-rom.yml @@ -8,23 +8,32 @@ env: USE_CCACHE: 1 jobs: - build-image: + build-voltage: runs-on: [self-hosted] steps: - - run: repo init -u https://github.com/VoltageOS/manifest.git -b 14 --depth=1 . - - run: | - mkdir -p .repo/local_manifests && \ - cp -v manifest.xml .repo/local_manifests/ - - run: git lfs install - - run: repo sync -c -j"$(nproc --all)" --force-sync --no-clone-bundle --no-tags - - run: repo forall -c git lfs pull - - run: ./patches/apply.sh . trebledroid - - run: ./patches/apply.sh . ponces - - run: ./patches/apply.sh . personal - - run: ./patches/apply.sh . graphene - - run: cd device/phh/treble && bash generate.sh Voltage - - run: ccache -M 50G -F 0 - - run: | - . build/envsetup.sh && \ - lunch treble_arm64_bvN-userdebug && \ - make systemimage -j"$(nproc --all)" + - name: clone voltage manifest + run: repo init -u https://github.com/VoltageOS/manifest.git -b 14 --depth=1 + - name: copy manifest config + run: | + mkdir -p .repo/local_manifests + cp -v manifest.xml .repo/local_manifests/ + - name: setup git-lfs hook + run: git lfs install + - name: perform full sources sync + run: repo sync -c -j"$(nproc --all)" --force-sync --no-clone-bundle --no-tags + - name: apply patches + run: | + ./patches/apply.sh . trebledroid + ./patches/apply.sh . ponces + ./patches/apply.sh . personal + ./patches/apply.sh . graphene + - name: generate base voltage config + run: bash generate.sh Voltage + working-directory: device/phh/treble + - name: initialize ccache + run: ccache -M 50G -F 0 + - name: build gsi + run: | + . build/envsetup.sh + lunch treble_arm64_bvN-userdebug + make systemimage -j"$(nproc --all)"