Skip to content

Commit 2fea617

Browse files
nbuchwitz6by9
authored andcommitted
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 <[email protected]>
1 parent 5db5de6 commit 2fea617

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.github/workflows/kernel-build.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@ name: Pi kernel build tests
22

33
on:
44
pull_request:
5-
paths-ignore:
6-
- '.github/**'
75
branches: [ "rpi-*" ]
86
push:
9-
paths-ignore:
10-
- '.github/**'
117
branches: [ "rpi-*" ]
128
workflow_dispatch:
139

@@ -16,7 +12,7 @@ env:
1612

1713
jobs:
1814
build:
19-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-24.04-arm
2016
strategy:
2117
matrix:
2218
include:
@@ -56,17 +52,13 @@ jobs:
5652
kernel: kernel_2712
5753

5854
steps:
59-
- name: Update install
60-
run:
55+
- name: Install armhf crossbuild toolchain
56+
if: matrix.arch == 'arm'
57+
env:
58+
DEBIAN_FRONTEND: noninteractive
59+
run: |
6160
sudo apt-get update
62-
63-
- name: Install toolchain
64-
run:
65-
if [[ "${{matrix.arch}}" == "arm64" ]]; then
66-
sudo apt-get install gcc-aarch64-linux-gnu;
67-
else
68-
sudo apt-get install gcc-arm-linux-gnueabihf;
69-
fi
61+
sudo apt-get install -y gcc-arm-linux-gnueabihf
7062
timeout-minutes: 15
7163

7264
- uses: actions/checkout@v4
@@ -79,7 +71,6 @@ jobs:
7971
mkdir ${{github.workspace}}/build
8072
export ARCH=${{matrix.arch}}
8173
if [[ "$ARCH" == "arm64" ]]; then
82-
export CROSS_COMPILE=aarch64-linux-gnu-
8374
export DTS_SUBDIR=broadcom
8475
export IMAGE=Image.gz
8576
else

0 commit comments

Comments
 (0)