mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
workflows: Use native arm64 runners
Use native arm64 runners to speed up build process. Cross compile is still used for arm targets, but also benefit from the arm64 runner architecture. Overall build time will be reduced by 25 to 30 minutes by this. Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
This commit is contained in:
committed by
Dom Cobley
parent
ce63e1718c
commit
06bf4e06bc
19
.github/workflows/kernel-build.yml
vendored
19
.github/workflows/kernel-build.yml
vendored
@@ -16,7 +16,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-24.04-arm
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
@@ -56,17 +56,13 @@ jobs:
|
|||||||
kernel: kernel_2712
|
kernel: kernel_2712
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Update install
|
- name: Install armhf crossbuild toolchain
|
||||||
run:
|
if: matrix.arch == 'arm'
|
||||||
|
env:
|
||||||
|
DEBIAN_FRONTEND: noninteractive
|
||||||
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y gcc-arm-linux-gnueabihf
|
||||||
- name: Install toolchain
|
|
||||||
run:
|
|
||||||
if [[ "${{matrix.arch}}" == "arm64" ]]; then
|
|
||||||
sudo apt-get install gcc-aarch64-linux-gnu;
|
|
||||||
else
|
|
||||||
sudo apt-get install gcc-arm-linux-gnueabihf;
|
|
||||||
fi
|
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -79,7 +75,6 @@ jobs:
|
|||||||
mkdir ${{github.workspace}}/build
|
mkdir ${{github.workspace}}/build
|
||||||
export ARCH=${{matrix.arch}}
|
export ARCH=${{matrix.arch}}
|
||||||
if [[ "$ARCH" == "arm64" ]]; then
|
if [[ "$ARCH" == "arm64" ]]; then
|
||||||
export CROSS_COMPILE=aarch64-linux-gnu-
|
|
||||||
export DTS_SUBDIR=broadcom
|
export DTS_SUBDIR=broadcom
|
||||||
export IMAGE=Image.gz
|
export IMAGE=Image.gz
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user