Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
CI: drop lunaa builds for now
Browse files Browse the repository at this point in the history
Change-Id: Id23fdf346051e69b8d3c89166a574d2733ab3f5f
Signed-off-by: Vaisakh Murali <[email protected]>
  • Loading branch information
mvaisakh committed Feb 13, 2024
1 parent 41f2c2d commit 3c5346b
Showing 1 changed file with 2 additions and 88 deletions.
90 changes: 2 additions & 88 deletions .github/workflows/kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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="<b>New build for OnePlus 9 Series</b> %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:
Expand Down

0 comments on commit 3c5346b

Please sign in to comment.