Fix and improve Armbian GH Action

- add forced host initialization
- change to aarch64 build runner by default
This commit is contained in:
Igor Pecovnik 2025-05-16 15:58:05 +02:00 committed by Igor
parent 56237de5ef
commit cbb0343d20
2 changed files with 7 additions and 3 deletions

View File

@ -55,7 +55,7 @@ Build minimal CLI Armbian Jammy for Bananapi M5 with LTS kernel:
./compile.sh \
BOARD=bananapim5 \
BRANCH=current \
RELEASE=jammy \
RELEASE=noble \
BUILD_MINIMAL=yes \
BUILD_DESKTOP=no \
KERNEL_CONFIGURE=no
@ -69,12 +69,12 @@ on:
workflow_dispatch:
jobs:
build-armbian:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm # use ubuntu-24.04 when building x86 or riscv64
steps:
- uses: armbian/build@main
with:
armbian_token: "${{ secrets.GITHUB_TOKEN }}" # GitHub token
armbian_release: "jammy" # userspace
armbian_release: "noble" # userspace
armbian_target: "build" # build=image, kernel=kernel
armbian_board: "bananapim5" # build target
```

View File

@ -172,6 +172,10 @@ runs:
# go to build folder
cd build
# default build command below doesn't prepare host dependencies
sudo ./compile.sh requirements
sudo chown -R $USER:$USER .
# execute build command
./compile.sh "${{ inputs.armbian_target }}" \
REVISION="${{ env.ARMBIAN_VERSION }}" \