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 a04ad9a
Showing
3 changed files
with
179 additions
and
97 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,35 @@ | ||
name: "Build Armbian Jammy for generic ARM64" | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
build: | ||
name: "Build Armbian for generic ARM64" | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Free Github Runner | ||
uses: descriptinc/free-disk-space@main | ||
with: | ||
android: true | ||
dotnet: true | ||
haskell: true | ||
large-packages: true | ||
docker-images: true | ||
swap-storage: true | ||
|
||
- name: "Compile ${{ inputs.build_target }}" | ||
uses: igorpecovnik/build@main | ||
with: | ||
armbian_target: "image" | ||
armbian_branch: "current" | ||
armbian_release: "jammy" | ||
armbian_ui: "minimal" | ||
armbian_board: "uefi-arm64" | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: armbian-artifacts | ||
path: | | ||
${{ env.ARMBIAN_SCRIPT_PATH }}/output/* |
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 }}" == minimal ]]; then | ||
BUILD_DESKTOP="yes" | ||
BUILD_MINIMAL="no" | ||
elif [[ "${{ inputs.armbian_ui }}" == server ]]; then | ||
BUILD_DESKTOP="no" | ||
BUILD_MINIMAL="yes" | ||
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="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" | ||
|