Create WE-826-BL740.yml #107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |