Skip to content

Commit bf7958f

Browse files
nbuchwitzpelwell
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 <nb@tipi-net.de>
1 parent 933bb6b commit bf7958f

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/kernel-build.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616

1717
jobs:
1818
build:
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-24.04-arm
2020
strategy:
2121
matrix:
2222
include:
@@ -56,17 +56,13 @@ jobs:
5656
kernel: kernel_2712
5757

5858
steps:
59-
- name: Update install
60-
run:
59+
- name: Install armhf crossbuild toolchain
60+
if: matrix.arch == 'arm'
61+
env:
62+
DEBIAN_FRONTEND: noninteractive
63+
run: |
6164
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
65+
sudo apt-get install -y gcc-arm-linux-gnueabihf
7066
timeout-minutes: 15
7167

7268
- uses: actions/checkout@v4
@@ -79,7 +75,6 @@ jobs:
7975
mkdir ${{github.workspace}}/build
8076
export ARCH=${{matrix.arch}}
8177
if [[ "$ARCH" == "arm64" ]]; then
82-
export CROSS_COMPILE=aarch64-linux-gnu-
8378
export DTS_SUBDIR=broadcom
8479
export IMAGE=Image.gz
8580
else

0 commit comments

Comments
 (0)