forked from armbian/linux-rockchip
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c718f56
commit 2f78399
Showing
2 changed files
with
52 additions
and
56 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
on: | ||
workflow_dispatch: | ||
push: | ||
pull_request: | ||
types: [opened, reopened, edited, synchronize] | ||
branches: | ||
- jammy | ||
- noble | ||
- oracular | ||
name: Build kernel | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Build | ||
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 "$(dpkg-architecture -aarm64)" | ||
echo "CROSS_COMPILE=aarch64-linux-gnu-" | ||
echo "CC=aarch64-linux-gnu-gcc" | ||
echo "LANG=C" | ||
} >> $GITHUB_ENV | ||
- name: Build Kernel at ${{ github.sha }} | ||
shell: bash | ||
run: | | ||
echo "artifacts_path=$(realpath ..)" >> $GITHUB_ENV | ||
echo "$CROSS_COMPILE" | ||
echo "$CC" | ||
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 |
This file was deleted.
Oops, something went wrong.