forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a356083
commit e4cd646
Showing
2 changed files
with
129 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,67 @@ | ||
name: "Rebuild Armbian" | ||
author: "https://github.com/armbian" | ||
description: "Build custom Linux for custom hardware" | ||
description: "Build Armbian Linux" | ||
inputs: | ||
# Select build target | ||
build_target: | ||
description: "Select build target: armbian / kernel" | ||
|
||
armbian_target: | ||
description: "Build image or kernel" | ||
required: false | ||
default: "armbian" | ||
# Images | ||
armbian_board: | ||
description: "Set device Board." | ||
default: "kernel" | ||
|
||
armbian_branch: | ||
description: "Choose kernel branch" | ||
required: false | ||
default: "all" | ||
armbian_fstype: | ||
description: "Set armbian rootfs type: ext4 / btrfs" | ||
default: "current" | ||
|
||
armbian_release: | ||
description: "Choose userspace release" | ||
required: false | ||
default: "ext4" | ||
builder_name: | ||
description: "Set Armbian builder signature." | ||
default: "jammy" | ||
|
||
armbian_version: | ||
description: "Set different version" | ||
required: false | ||
default: "" | ||
# Kernel | ||
kernel_branch: | ||
description: "Set the tags of the stable kernel." | ||
|
||
armbian_board: | ||
description: "Select hardware platform" | ||
required: false | ||
default: "stable" | ||
default: "uefi-x86" | ||
|
||
armbian_minimal: | ||
description: "Minimal image" | ||
required: false | ||
default: "yes" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- shell: bash | ||
run: | | ||
# translations for easier handling | ||
BUILD_TARGET="${{ inputs.build_target }}" | ||
[[ "${{ inputs.armbian_target }}" == image ]] && unset BUILD_TARGET | ||
# go to build folder | ||
cd ${GITHUB_ACTION_PATH} | ||
ls -l | ||
# execute build command | ||
./compile.sh "${BUILD_TARGET}" \ | ||
REVISION="${{ inputs.armbian_version }}" \ | ||
BOARD="${{ inputs.armbian_board }}" \ | ||
BRANCH="${{ inputs.armbian_branch }}" \ | ||
RELEASE="${{ inputs.armbian_release }}" \ | ||
KERNEL_CONFIGURE="no" \ | ||
BUILD_DESKTOP="no" \ | ||
BUILD_MINIMAL="${{ inputs.armbian_minimal }}" \ | ||
COMPRESS_OUTPUTIMAGE="sha,img,xz" \ | ||
EXPERT="yes" | ||
# save path | ||
echo "ARMBIAN_SCRIPT_PATH=${GITHUB_ACTION_PATH}" >> $GITHUB_ENV | ||
branding: | ||
icon: "terminal" | ||
color: "gray-dark" | ||
icon: "check" | ||
color: "red" | ||
|