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 c746ddb
Showing
3 changed files
with
190 additions
and
111 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "Build generic Armbian X86 SDK" | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
build: | ||
name: "Build generic Armbian X86 SDK" | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: "Build generic Armbian X86 SDK" | ||
uses: igorpecovnik/build@main | ||
with: | ||
armbian_target: "image" # repace with `kernel` if you only want to build artifacts | ||
armbian_branch: "current" # branch: legacy, current, edge, etc. | ||
armbian_release: "jammy" # userspace: jammy, bookworm, trixie, etc. | ||
armbian_ui: "minimal" # minimal, server, xfce, gnome, etc. | ||
armbian_compress: "" # compression method: sha,img,xz | ||
armbian_board: "uefi-x86" # build target from https://github.com/armbian/build/tree/main/config/boards | ||
|
||
- name: "Upload to workflow artifacts" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: armbian-artifacts | ||
path: | | ||
"${{ env.ARMBIAN_SCRIPT_PATH }}/output/images/*" |
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,91 @@ | ||
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: "uefi-x86" | ||
|
||
armbian_ui: | ||
description: "Armbian user interface" | ||
required: false | ||
default: "stable" | ||
default: "minimal" | ||
|
||
armbian_compress: | ||
description: "Armbian compress method" | ||
required: false | ||
default: "" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- shell: bash | ||
run: | | ||
# userspace decode | ||
if [[ "${{ inputs.armbian_ui }}" == minimal ]]; then | ||
BUILD_DESKTOP="no" | ||
BUILD_MINIMAL="yes" | ||
elif [[ "${{ inputs.armbian_ui }}" == server ]]; then | ||
BUILD_DESKTOP="no" | ||
BUILD_MINIMAL="no" | ||
else | ||
BUILD_DESKTOP="yes" | ||
BUILD_MINIMAL="no" | ||
DESKTOP_ENVIRONMENT="${{ inputs.armbian_ui }}" | ||
DESKTOP_APPGROUPS_SELECTED="" | ||
DESKTOP_ENVIRONMENT_CONFIG_NAME="config_base" | ||
fi | ||
# compile image or kernel translation | ||
BUILD_TARGET="${{ inputs.armbian_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="${{ inputs.armbian_compress }}" \ | ||
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" | ||
|