-
Notifications
You must be signed in to change notification settings - Fork 3
65 lines (54 loc) · 2.15 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# This is a basic workflow to help you get started with Actions
name: Compile Kernel
# 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: Install packages
run: |
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install repo zip
# 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: Download Factory Images (Update vendor ramdisk)
run: |
cd ..
curl -O "https://dl.google.com/dl/android/aosp/raven-ap1a.240505.004-factory-9d783215.zip"
- name: Update vendor ramdisk
run: |
unzip raven-ap1a.240505.004-factory-9d783215.zip
cd raven-ap1a.240505.004
unzip image-raven-ap2a.240505.004.zip vendor_boot.img
mv vendor_boot.img ..
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: Compile Kernel
run: |
cd android-kernel
tools/bazel run --config=fast --config=stamp //private/google-modules/soc/gs:slider_dist
cd out
ls
- name: Pack images to upload
run: |
mkdir to-upload
cp slider/dist/boot.img to-upload
cp slider/dist/dtbo.img to-upload
cp slider/dist/vendor_boot.img to-upload
cp slider/dist/vendor_dlkm.img to-upload
zip the-images to-upload -r