Skip to content

Update magisk_root.yml #17

Update magisk_root.yml

Update magisk_root.yml #17

# This is a basic workflow to help you get started with Actions
name: Compile Kernel from Source
# Controls when the workflow will run
on:
push:
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout Project
uses: actions/[email protected]
- name: Install packages
run: |
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install repo
- name: Free up space
uses: jlumbroso/free-disk-space@main
# Runs a set of commands using the runners shell
- name: Sync kernel repo
run: |
mkdir android-kernel
cd android-kernel
repo init -u https://android.googlesource.com/kernel/manifest -b android14-gs-pixel-6.1
repo sync -c --no-tags
- name: Update vendor ramdisk (through curl)
if: true
run: |
curl -O "https://dl.google.com/dl/android/aosp/raven-ap1a.240505.004-factory-9d783215.zip"
unzip raven-ap1a.240505.004-factory-9d783215.zip
cd raven-ap1a.240505.004
unzip image-raven-ap1a.240505.004.zip vendor_boot.img
mv vendor_boot.img ..
cd ..
ls
pwd
android-kernel/tools/mkbootimg/unpack_bootimg.py --boot_img vendor_boot.img --out vendor_boot_out
cp vendor_boot_out/vendor-ramdisk-by-name/ramdisk_ android-kernel/prebuilts/boot-artifacts/ramdisks/vendor_ramdisk-oriole.img
- name: Update vendor ramdisk (locally)
if: false
run: |
cp vendor_ramdisk00 android-kernel/prebuilts/boot-artifacts/ramdisks/vendor_ramdisk-oriole.img
- name: Compile Kernel
run: |
cd android-kernel
tools/bazel run --config=fast --config=stamp //private/google-modules/soc/gs:slider_dist
- name: Pack images to upload
run: |
mkdir to-upload
cp android-kernel/out/slider/dist/boot.img to-upload
cp android-kernel/out/slider/dist/dtbo.img to-upload
cp android-kernel/out/slider/dist/vendor_boot.img to-upload
cp android-kernel/out/slider/dist/vendor_dlkm.img to-upload
- name: Upload files
uses: actions/[email protected]
with:
name: the-images
path: to-upload/