forked from armbian/linux-rockchip
-
Notifications
You must be signed in to change notification settings - Fork 85
50 lines (44 loc) · 1.5 KB
/
compile.yaml
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
on:
workflow_dispatch:
push:
pull_request:
types: [opened, reopened, edited, synchronize]
branches:
- jammy
- noble
- oracular
name: Compile Kernel Package
jobs:
build:
runs-on: ubuntu-latest
name: Compile
steps:
- name: Install dependencies
shell: bash
run: |
sudo apt-get update && apt-get purge needrestart -y && sudo apt-get upgrade -y
sudo apt-get install -y build-essential gcc-aarch64-linux-gnu bison \
u-boot-tools binfmt-support flex libssl-dev bc rsync kmod cpio xz-utils fakeroot \
udev dosfstools uuid-runtime device-tree-compiler python3 python-is-python3 \
bc debhelper swig libfdt-dev libpython3-dev dctrl-tools
- name: Checkout Kernel repo
uses: actions/checkout@v4
- name: Setup Environment Variables
shell: bash
run: |
{
echo "artifacts_path=$(realpath ..)"
echo "$(dpkg-architecture -aarm64)"
echo "CROSS_COMPILE=aarch64-linux-gnu-"
echo "CC=aarch64-linux-gnu-gcc"
echo "LANG=C"
} >> $GITHUB_ENV
- name: Compile Kernel Package
shell: bash
run: fakeroot debian/rules clean binary-headers binary-rockchip do_mainline_build=true
- name: Upload Artifact
uses: actions/[email protected]
with:
name: linux-rockchip
path: ${{ env.artifacts_path }}/*.deb
if-no-files-found: error