generated from P3TERX/Actions-OpenWrt
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.41 KB
/
HG255D_LEDE17.01.5.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
name: Compile imx280a Linux Kernel
on:
push:
branches:
- main
pull_request:
branches:
- main
repository_dispatch:
workflow_dispatch:
inputs:
ssh:
description: 'SSH connection to Actions'
required: false
default: 'false'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up build environment
run: sudo apt-get update && sudo apt-get install -y build-essential libncurses-dev bison flex libssl-dev libelf-dev
- name: Clone kernel source
run: git clone https://github.com/embeddedTS/linux-2.6.35.3-imx28.git
- name: Set up default configuration
run: |
cd linux-2.6.35.3-imx28
make ARCH=arm imx28evk_defconfig
- name: SSH connection to Actions
uses: P3TERX/ssh2actions@v1.0.0
if: (github.event.inputs.ssh == 'true' && github.event.inputs.ssh != 'false') || contains(github.event.action, 'ssh')
env:
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
- name: Compile the kernel
run: |
cd linux-2.6.35.3-imx28
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j$(nproc)
- name: Upload kernel image
uses: actions/upload-artifact@v2
with:
name: kernel-image
path: linux-2.6.35.3-imx28/arch/arm/boot/uImage