mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Fix and improve Armbian GH Action
- add forced host initialization - change to aarch64 build runner by default
This commit is contained in:
@@ -55,7 +55,7 @@ Build minimal CLI Armbian Jammy for Bananapi M5 with LTS kernel:
|
|||||||
./compile.sh \
|
./compile.sh \
|
||||||
BOARD=bananapim5 \
|
BOARD=bananapim5 \
|
||||||
BRANCH=current \
|
BRANCH=current \
|
||||||
RELEASE=jammy \
|
RELEASE=noble \
|
||||||
BUILD_MINIMAL=yes \
|
BUILD_MINIMAL=yes \
|
||||||
BUILD_DESKTOP=no \
|
BUILD_DESKTOP=no \
|
||||||
KERNEL_CONFIGURE=no
|
KERNEL_CONFIGURE=no
|
||||||
@@ -69,12 +69,12 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
build-armbian:
|
build-armbian:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-24.04-arm # use ubuntu-24.04 when building x86 or riscv64
|
||||||
steps:
|
steps:
|
||||||
- uses: armbian/build@main
|
- uses: armbian/build@main
|
||||||
with:
|
with:
|
||||||
armbian_token: "${{ secrets.GITHUB_TOKEN }}" # GitHub token
|
armbian_token: "${{ secrets.GITHUB_TOKEN }}" # GitHub token
|
||||||
armbian_release: "jammy" # userspace
|
armbian_release: "noble" # userspace
|
||||||
armbian_target: "build" # build=image, kernel=kernel
|
armbian_target: "build" # build=image, kernel=kernel
|
||||||
armbian_board: "bananapim5" # build target
|
armbian_board: "bananapim5" # build target
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -172,6 +172,10 @@ runs:
|
|||||||
# go to build folder
|
# go to build folder
|
||||||
cd build
|
cd build
|
||||||
|
|
||||||
|
# default build command below doesn't prepare host dependencies
|
||||||
|
sudo ./compile.sh requirements
|
||||||
|
sudo chown -R $USER:$USER .
|
||||||
|
|
||||||
# execute build command
|
# execute build command
|
||||||
./compile.sh "${{ inputs.armbian_target }}" \
|
./compile.sh "${{ inputs.armbian_target }}" \
|
||||||
REVISION="${{ env.ARMBIAN_VERSION }}" \
|
REVISION="${{ env.ARMBIAN_VERSION }}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user