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 030da3d
Showing
2 changed files
with
156 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,86 @@ | ||
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_ui: | ||
description: "Armbian user interface" | ||
required: false | ||
default: "minimal" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- shell: bash | ||
run: | | ||
# userspace decode | ||
if [[ "${{ inputs.armbian_ui }}" == xfce ]]; then | ||
BUILD_DESKTOP="yes" | ||
BUILD_MINIMAL="no" | ||
DESKTOP_ENVIRONMENT="xfce" | ||
DESKTOP_APPGROUPS_SELECTED="" | ||
DESKTOP_ENVIRONMENT_CONFIG_NAME="config_base" | ||
else | ||
BUILD_DESKTOP="no" | ||
BUILD_MINIMAL="yes" | ||
DESKTOP_ENVIRONMENT="" | ||
DESKTOP_APPGROUPS_SELECTED="" | ||
DESKTOP_ENVIRONMENT_CONFIG_NAME="" | ||
fi | ||
# 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="${BUILD_DESKTOP}" \ | ||
BUILD_MINIMAL="${BUILD_MINIMAL}" \ | ||
DESKTOP_ENVIRONMENT="${DESKTOP_ENVIRONMENT}" \ | ||
DESKTOP_APPGROUPS_SELECTED="${DESKTOP_APPGROUPS_SELECTED}" \ | ||
DESKTOP_ENVIRONMENT_CONFIG_NAME="${DESKTOP_ENVIRONMENT_CONFIG_NAME}" \ | ||
COMPRESS_OUTPUTIMAGE="sha,img,xz" \ | ||
SHARE_LOG="yes" \ | ||
EXPERT="yes" | ||
# save path | ||
echo "ARMBIAN_SCRIPT_PATH=${GITHUB_ACTION_PATH}" >> $GITHUB_ENV | ||
branding: | ||
icon: "terminal" | ||
color: "gray-dark" | ||
icon: "check" | ||
color: "red" | ||
|