diff --git a/.github/workflows/kernel.yml b/.github/workflows/kernel.yml index 748518f9f3ef..765584e8fd78 100644 --- a/.github/workflows/kernel.yml +++ b/.github/workflows/kernel.yml @@ -191,94 +191,8 @@ jobs: ak3/*.zip *.xz - build-lunaa-gcc: - needs: [bot-notify-ci] - runs-on: ubuntu-latest - container: - image: fedora:latest - - steps: - - name: Setup Pre-requisites - run: sudo dnf install gcc clang lld repo bc flex openssl-devel wget tar zstd bsdtar file -y - - name: Repo sync - run: | - repo init -u https://github.com/mvaisakh/android_kernel_manifest -b eva-oneplus-5.4 --depth=1 - repo sync --no-tags --no-clone-bundle -j$(nproc --all) - - name: Sync PGO Profiles - run: | - mkdir -p /home/runner/work/oneplus9pro/oneplus9pro/out/msm-5.4-lahaina-qgki/kernel/msm-5.4 - wget https://github.com/mvaisakh/oneplus9pro/releases/download/220420230428-profiling/eva-lunaa-gcov-gcno-220420230426.xz - tar -xf eva-lunaa-gcov-gcno-220420230426.xz - mv home/runner/work/oneplus9pro/oneplus9pro/out/msm-5.4-lahaina-qgki/kernel/msm-5.4/* /home/runner/work/oneplus9pro/oneplus9pro/out/msm-5.4-lahaina-qgki/kernel/msm-5.4 - cd /home/runner/work/oneplus9pro/oneplus9pro/out/msm-5.4-lahaina-qgki/kernel/msm-5.4 - wget https://github.com/mvaisakh/oneplus9pro/releases/download/220420230428-profiling/eva-kernel-lunaa-gcov-profile-230420230421.xz - tar -xvf eva-kernel-lunaa-gcov-profile-230420230421.xz - cd - - - name: GCC Build - run: | - sed -i s/build-user/mvaisakh/g build/_setup_env.sh - sed -i s/build-host/statixos/g build/_setup_env.sh - BUILD_CONFIG=kernel/msm-5.4/build.config.lunaa VARIANT=qgki BUILTIN=1 COMPILER=gcc GCC_LTO=1 GRAPHITE=1 PGO=1 SKIP_MRPROPER=1 BUILD_KERNEL=1 build/build.sh - - name: Create zip - run: | - cp out/msm-5.4-lahaina-qgki/dist/Image ak3/ - cat out/msm-5.4-lahaina-qgki/dist/*.dtb > ak3/dtb - cp out/msm-5.4-lahaina-qgki/dist/dtbo.img ak3/ - cd ak3/ && zip -r9 eva-lunaa-$(/bin/date -u '+%d%m%Y%I%M')-gcc.zip * -x .git README.md ./*/placeholder - cd ../ - - uses: actions/upload-artifact@main - with: - name: release-zip - path: ak3/*.zip - - name: Push kernel - run: | - git config --global user.name "${GITHUB_USER}" - git config --global user.email "${GITHUB_EMAIL}" - git clone https://"${GITHUB_USER}":"${PUSH_TOKEN}"@github.com/mvaisakh/android_device_realme_lunaa-kernel lunaa-kernel -b tm-gcc - cp out/msm-5.4-lahaina-qgki/dist/* lunaa-kernel - cd lunaa-kernel - f="$(git rev-parse --git-dir)/hooks/commit-msg"; curl -o "$f" https://review.statixos.com/tools/hooks/commit-msg ; chmod +x "$f" - git add . - git commit -m "lunaa-kernel: update prebuilts $(/bin/date -u '+%d%m%Y%I%M')" -m "version: $(strings Image | grep 'Linux Version 5')" - git push - - build-lunaa-gcc-profiling: - needs: [bot-notify-ci] - runs-on: ubuntu-latest - container: - image: fedora:latest - - steps: - - name: Setup Pre-requisites - run: sudo dnf install gcc clang lld repo bc flex openssl-devel wget tar zstd bsdtar file -y - - name: Repo sync - run: | - repo init -u https://github.com/mvaisakh/android_kernel_manifest -b eva-oneplus-5.4 --depth=1 - repo sync --no-tags --no-clone-bundle -j$(nproc --all) - - name: GCC Build - run: | - sed -i s/build-user/mvaisakh/g build/_setup_env.sh - sed -i s/build-host/statixos/g build/_setup_env.sh - BUILD_CONFIG=kernel/msm-5.4/build.config.lunaa VARIANT=qgki BUILTIN=1 COMPILER=gcc GCC_LTO=1 GRAPHITE=1 SKIP_MRPROPER=1 GCOV_PROFILE=1 BUILD_KERNEL=1 build/build.sh - - name: Create zip - run: | - cp out/msm-5.4-lahaina-qgki/dist/Image ak3/ - cat out/msm-5.4-lahaina-qgki/dist/*.dtb > ak3/dtb - cp out/msm-5.4-lahaina-qgki/dist/dtbo.img ak3/ - cd ak3/ && zip -r9 eva-lunaa-$(/bin/date -u '+%d%m%Y%I%M')-gcc-profiling.zip * -x .git README.md ./*/placeholder - cd ../ - - name: Create profiling tar - run: | - tar -cf eva-lunaa-gcov-gcno-$(/bin/date -u '+%d%m%Y%I%M').xz $(find /home/runner/work/oneplus9pro/oneplus9pro/out/msm-5.4-lahaina-qgki/kernel/msm-5.4/ | grep gcno) - - uses: actions/upload-artifact@main - with: - name: profile-zip - path: | - ak3/*.zip - *.xz - publish-release: - needs: [build-lemonade-gcc,build-martini-gcc,build-lunaa-gcc] + needs: [build-lemonade-gcc,build-martini-gcc] runs-on: ubuntu-latest steps: @@ -301,7 +215,7 @@ jobs: run: curl -s -X POST ${{ env.BOT_MSG_URL }} -d chat_id=${{ env.CHAT_ID }} -d "disable_web_page_preview=true" -d "parse_mode=html" -d text="New build for OnePlus 9 Series %0A$(cat release-text | sed '1d;3d;4d;6d;7d;9d;10d;11d;12d;13d;14d;15d;16d;17d;')" publish-release-profiling: - needs: [build-lemonade-gcc-profiling,build-martini-gcc-profiling,build-lunaa-gcc-profiling] + needs: [build-lemonade-gcc-profiling,build-martini-gcc-profiling] runs-on: ubuntu-latest steps: