-
Notifications
You must be signed in to change notification settings - Fork 3
78 lines (65 loc) · 2.61 KB
/
compile_from_source.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
66
67
68
69
70
71
72
73
74
75
76
77
78
# 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/