Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Commit

Permalink
CI: drop support for everything except alioth and elish
Browse files Browse the repository at this point in the history
Only support devices with users

Change-Id: Icbd76876b968fcfd40cb9a592199d48b783f531a
Signed-off-by: Vaisakh Murali <[email protected]>
  • Loading branch information
mvaisakh committed Apr 24, 2023
1 parent 0ed582b commit d060fb0
Showing 1 changed file with 2 additions and 272 deletions.
274 changes: 2 additions & 272 deletions .github/workflows/kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Send message
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="CI kernel build triggered for <b>Xiaomi SM8250 Devices</b>"
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="CI kernel build triggered for <b>Alioth and Elish</b>"

build-alioth:

Expand Down Expand Up @@ -71,114 +71,6 @@ jobs:
name: release-zip
path: ak3/*.zip

build-apollo:

runs-on: ubuntu-latest

steps:
- name: Setup repo
run: sudo apt update -y && sudo apt install -y repo elfutils
- name: Repo sync
run: |
repo init -u https://github.com/mvaisakh/android_kernel_manifest -b eva-xiaomi-4.19 --depth=1
repo sync --no-tags --no-clone-bundle -j$(nproc --all)
sed -i s/build-user/mvaisakh/g build/_setup_env.sh
sed -i s/build-host/statixos/g build/_setup_env.sh
- name: Build apollo
run: BUILD_CONFIG=kernel/msm-4.19/build.config.xiaomi.apollo COMPILER=gcc BUILD_KERNEL=1 build/build.sh
- name: Create zip
run: |
cp out/android-4.19-stable/dist/Image ak3/
cat out/android-4.19-stable/dist/*.dtb > ak3/dtb
cp out/android-4.19-stable/dist/dtbo.img ak3/
cd ak3/ && zip -r9 eva-apollo-$(/bin/date -u '+%d%m%Y%I%M').zip * -x .git README.md ./*/placeholder
cd ../
- uses: actions/upload-artifact@main
with:
name: release-zip
path: ak3/*.zip

build-cas:

runs-on: ubuntu-latest

steps:
- name: Setup repo
run: sudo apt update -y && sudo apt install -y repo elfutils
- name: Repo sync
run: |
repo init -u https://github.com/mvaisakh/android_kernel_manifest -b eva-xiaomi-4.19 --depth=1
repo sync --no-tags --no-clone-bundle -j$(nproc --all)
sed -i s/build-user/mvaisakh/g build/_setup_env.sh
sed -i s/build-host/statixos/g build/_setup_env.sh
- name: Build cas
run: BUILD_CONFIG=kernel/msm-4.19/build.config.xiaomi.cas COMPILER=gcc BUILD_KERNEL=1 build/build.sh
- name: Create zip
run: |
cp out/android-4.19-stable/dist/Image ak3/
cat out/android-4.19-stable/dist/*.dtb > ak3/dtb
cp out/android-4.19-stable/dist/dtbo.img ak3/
cd ak3/ && zip -r9 eva-cas-$(/bin/date -u '+%d%m%Y%I%M').zip * -x .git README.md ./*/placeholder
cd ../
- uses: actions/upload-artifact@main
with:
name: release-zip
path: ak3/*.zip

build-cmi:

runs-on: ubuntu-latest

steps:
- name: Setup repo
run: sudo apt update -y && sudo apt install -y repo elfutils
- name: Repo sync
run: |
repo init -u https://github.com/mvaisakh/android_kernel_manifest -b eva-xiaomi-4.19 --depth=1
repo sync --no-tags --no-clone-bundle -j$(nproc --all)
sed -i s/build-user/mvaisakh/g build/_setup_env.sh
sed -i s/build-host/statixos/g build/_setup_env.sh
- name: Build cmi
run: BUILD_CONFIG=kernel/msm-4.19/build.config.xiaomi.cmi COMPILER=gcc BUILD_KERNEL=1 build/build.sh
- name: Create zip
run: |
cp out/android-4.19-stable/dist/Image ak3/
cat out/android-4.19-stable/dist/*.dtb > ak3/dtb
cp out/android-4.19-stable/dist/dtbo.img ak3/
cd ak3/ && zip -r9 eva-cmi-$(/bin/date -u '+%d%m%Y%I%M').zip * -x .git README.md ./*/placeholder
cd ../
- uses: actions/upload-artifact@main
with:
name: release-zip
path: ak3/*.zip

build-dagu:

runs-on: ubuntu-latest

steps:
- name: Setup repo
run: sudo apt update -y && sudo apt install -y repo elfutils
- name: Repo sync
run: |
repo init -u https://github.com/mvaisakh/android_kernel_manifest -b eva-xiaomi-4.19 --depth=1
repo sync --no-tags --no-clone-bundle -j$(nproc --all)
sed -i s/build-user/mvaisakh/g build/_setup_env.sh
sed -i s/build-host/statixos/g build/_setup_env.sh
- name: Build dagu
run: BUILD_CONFIG=kernel/msm-4.19/build.config.xiaomi.dagu COMPILER=gcc BUILD_KERNEL=1 build/build.sh
- name: Create zip
run: |
cp out/android-4.19-stable/dist/Image ak3/
cat out/android-4.19-stable/dist/*.dtb > ak3/dtb
cp out/android-4.19-stable/dist/dtbo.img ak3/
cd ak3/ && zip -r9 eva-dagu-$(/bin/date -u '+%d%m%Y%I%M').zip * -x .git README.md ./*/placeholder
cd ../
- uses: actions/upload-artifact@main
with:
name: release-zip
path: ak3/*.zip

build-elish:

runs-on: ubuntu-latest
Expand Down Expand Up @@ -206,170 +98,8 @@ jobs:
name: release-zip
path: ak3/*.zip

build-enuma:

runs-on: ubuntu-latest

steps:
- name: Setup repo
run: sudo apt update -y && sudo apt install -y repo elfutils
- name: Repo sync
run: |
repo init -u https://github.com/mvaisakh/android_kernel_manifest -b eva-xiaomi-4.19 --depth=1
repo sync --no-tags --no-clone-bundle -j$(nproc --all)
sed -i s/build-user/mvaisakh/g build/_setup_env.sh
sed -i s/build-host/statixos/g build/_setup_env.sh
- name: Build enuma
run: BUILD_CONFIG=kernel/msm-4.19/build.config.xiaomi.enuma COMPILER=gcc BUILD_KERNEL=1 build/build.sh
- name: Create zip
run: |
cp out/android-4.19-stable/dist/Image ak3/
cat out/android-4.19-stable/dist/*.dtb > ak3/dtb
cp out/android-4.19-stable/dist/dtbo.img ak3/
cd ak3/ && zip -r9 eva-enuma-$(/bin/date -u '+%d%m%Y%I%M').zip * -x .git README.md ./*/placeholder
cd ../
- uses: actions/upload-artifact@main
with:
name: release-zip
path: ak3/*.zip

build-lmi:

runs-on: ubuntu-latest

steps:
- name: Setup repo
run: sudo apt update -y && sudo apt install -y repo elfutils
- name: Repo sync
run: |
repo init -u https://github.com/mvaisakh/android_kernel_manifest -b eva-xiaomi-4.19 --depth=1
repo sync --no-tags --no-clone-bundle -j$(nproc --all)
sed -i s/build-user/mvaisakh/g build/_setup_env.sh
sed -i s/build-host/statixos/g build/_setup_env.sh
- name: Build lmi
run: BUILD_CONFIG=kernel/msm-4.19/build.config.xiaomi.lmi COMPILER=gcc BUILD_KERNEL=1 build/build.sh
- name: Create zip
run: |
cp out/android-4.19-stable/dist/Image ak3/
cat out/android-4.19-stable/dist/*.dtb > ak3/dtb
cp out/android-4.19-stable/dist/dtbo.img ak3/
cd ak3/ && zip -r9 eva-lmi-$(/bin/date -u '+%d%m%Y%I%M').zip * -x .git README.md ./*/placeholder
cd ../
- uses: actions/upload-artifact@main
with:
name: release-zip
path: ak3/*.zip

build-munch:

runs-on: ubuntu-latest

steps:
- name: Setup repo
run: sudo apt update -y && sudo apt install -y repo elfutils
- name: Repo sync
run: |
repo init -u https://github.com/mvaisakh/android_kernel_manifest -b eva-xiaomi-4.19 --depth=1
repo sync --no-tags --no-clone-bundle -j$(nproc --all)
sed -i s/build-user/mvaisakh/g build/_setup_env.sh
sed -i s/build-host/statixos/g build/_setup_env.sh
- name: Build munch
run: BUILD_CONFIG=kernel/msm-4.19/build.config.xiaomi.munch COMPILER=gcc BUILD_KERNEL=1 build/build.sh
- name: Create zip
run: |
cp out/android-4.19-stable/dist/Image ak3/
cat out/android-4.19-stable/dist/*.dtb > ak3/dtb
cp out/android-4.19-stable/dist/dtbo.img ak3/
cd ak3/ && zip -r9 eva-munch-$(/bin/date -u '+%d%m%Y%I%M').zip * -x .git README.md ./*/placeholder
cd ../
- uses: actions/upload-artifact@main
with:
name: release-zip
path: ak3/*.zip

build-psyche:

runs-on: ubuntu-latest

steps:
- name: Setup repo
run: sudo apt update -y && sudo apt install -y repo elfutils
- name: Repo sync
run: |
repo init -u https://github.com/mvaisakh/android_kernel_manifest -b eva-xiaomi-4.19 --depth=1
repo sync --no-tags --no-clone-bundle -j$(nproc --all)
sed -i s/build-user/mvaisakh/g build/_setup_env.sh
sed -i s/build-host/statixos/g build/_setup_env.sh
- name: Build psyche
run: BUILD_CONFIG=kernel/msm-4.19/build.config.xiaomi.psyche COMPILER=gcc BUILD_KERNEL=1 build/build.sh
- name: Create zip
run: |
cp out/android-4.19-stable/dist/Image ak3/
cat out/android-4.19-stable/dist/*.dtb > ak3/dtb
cp out/android-4.19-stable/dist/dtbo.img ak3/
cd ak3/ && zip -r9 eva-psyche-$(/bin/date -u '+%d%m%Y%I%M').zip * -x .git README.md ./*/placeholder
cd ../
- uses: actions/upload-artifact@main
with:
name: release-zip
path: ak3/*.zip

build-thyme:

runs-on: ubuntu-latest

steps:
- name: Setup repo
run: sudo apt update -y && sudo apt install -y repo elfutils
- name: Repo sync
run: |
repo init -u https://github.com/mvaisakh/android_kernel_manifest -b eva-xiaomi-4.19 --depth=1
repo sync --no-tags --no-clone-bundle -j$(nproc --all)
sed -i s/build-user/mvaisakh/g build/_setup_env.sh
sed -i s/build-host/statixos/g build/_setup_env.sh
- name: Build thyme
run: BUILD_CONFIG=kernel/msm-4.19/build.config.xiaomi.thyme COMPILER=gcc BUILD_KERNEL=1 build/build.sh
- name: Create zip
run: |
cp out/android-4.19-stable/dist/Image ak3/
cat out/android-4.19-stable/dist/*.dtb > ak3/dtb
cp out/android-4.19-stable/dist/dtbo.img ak3/
cd ak3/ && zip -r9 eva-thyme-$(/bin/date -u '+%d%m%Y%I%M').zip * -x .git README.md ./*/placeholder
cd ../
- uses: actions/upload-artifact@main
with:
name: release-zip
path: ak3/*.zip

build-umi:

runs-on: ubuntu-latest

steps:
- name: Setup repo
run: sudo apt update -y && sudo apt install -y repo elfutils
- name: Repo sync
run: |
repo init -u https://github.com/mvaisakh/android_kernel_manifest -b eva-xiaomi-4.19 --depth=1
repo sync --no-tags --no-clone-bundle -j$(nproc --all)
sed -i s/build-user/mvaisakh/g build/_setup_env.sh
sed -i s/build-host/statixos/g build/_setup_env.sh
- name: Build umi
run: BUILD_CONFIG=kernel/msm-4.19/build.config.xiaomi.umi COMPILER=gcc BUILD_KERNEL=1 build/build.sh
- name: Create zip
run: |
cp out/android-4.19-stable/dist/Image ak3/
cat out/android-4.19-stable/dist/*.dtb > ak3/dtb
cp out/android-4.19-stable/dist/dtbo.img ak3/
cd ak3/ && zip -r9 eva-umi-$(/bin/date -u '+%d%m%Y%I%M').zip * -x .git README.md ./*/placeholder
cd ../
- uses: actions/upload-artifact@main
with:
name: release-zip
path: ak3/*.zip

publish-release:
needs: [build-alioth,build-apollo,build-cas,build-cmi,build-dagu,build-elish,build-enuma,build-lmi,build-munch,build-psyche,build-thyme,build-umi]
needs: [build-alioth,build-alioth-nosdcardfs,build-elish]
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit d060fb0

Please sign in to comment.