-
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
dba9ad2
commit 0f21edd
Showing
5 changed files
with
133 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
name: "Build Custom Armbian Images" | ||
on: | ||
workflow_dispatch: | ||
repository_dispatch: | ||
types: ["custom"] | ||
|
||
# Ensure there is only one instance of job running | ||
concurrency: | ||
group: ${{ github.run_id }}-custom | ||
cancel-in-progress: false | ||
|
||
# Allow writing packages | ||
permissions: | ||
contents: read | ||
packages: write | ||
jobs: | ||
build-armbian: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
release: | ||
- trixie | ||
- bullseye | ||
ui: | ||
- minimal | ||
- server | ||
- xfce | ||
kernel: | ||
- legacy | ||
- current | ||
- vendor | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Get current date | ||
id: date | ||
run: echo "DATE=(date +'%y.%m.%d')" >> "$GITHUB_OUTPUT" | ||
|
||
- name: "Checkout Armbian os" | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: armbian/os | ||
fetch-depth: 0 | ||
clean: false | ||
path: os | ||
|
||
- name: "Checkout Armbian build framework" | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: armbian/build | ||
fetch-depth: 0 | ||
clean: false | ||
path: build | ||
|
||
- name: "Checkout customisations" | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: "armbian" | ||
fetch-depth: 0 | ||
clean: false | ||
path: custom | ||
|
||
- name: Armbian Customisations | ||
shell: bash | ||
run: | | ||
# read version from upstream Armbian OS | ||
cat os/stable.json | jq '.version' | sed "s/\"//g" | sed 's/^/ARMBIAN_VERSION=/' >> $GITHUB_ENV | ||
# [[ "${{ inputs.armbian_version }}" != '' ]] && echo "ARMBIAN_VERSION=${{ inputs.armbian_version }}" >> $GITHUB_ENV | ||
# copy os userpatches and custom | ||
mkdir -pv build/userpatches | ||
rsync -av os/userpatches/. build/userpatches/ | ||
[[ -d custom/userpatches ]] && rsync -av custom/userpatches/. build/userpatches/ | ||
- shell: bash | ||
run: | | ||
# userspace decode | ||
if [[ "${{ matrix.ui }}" == minimal ]]; then | ||
BUILD_DESKTOP="no" | ||
BUILD_MINIMAL="yes" | ||
elif [[ "${{ matrix.ui }}" == server ]]; then | ||
BUILD_DESKTOP="no" | ||
BUILD_MINIMAL="no" | ||
else | ||
BUILD_DESKTOP="yes" | ||
BUILD_MINIMAL="no" | ||
DESKTOP_ENVIRONMENT="${{ matrix.ui }}" | ||
DESKTOP_APPGROUPS_SELECTED="" | ||
DESKTOP_ENVIRONMENT_CONFIG_NAME="config_base" | ||
fi | ||
# go to build folder and checkout | ||
cd build | ||
git checkout ${{ inputs.armbian_branch }} | ||
# execute build command | ||
./compile.sh "build" \ | ||
REVISION="${{ env.ARMBIAN_VERSION }}" \ | ||
BOARD="radxa-zero3" \ | ||
BRANCH="${{ matrix.kernel }}" \ | ||
RELEASE="${{ matrix.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}" \ | ||
# ENABLE_EXTENSIONS="${{ inputs.armbian_extensions }}" \ | ||
COMPRESS_OUTPUTIMAGE="sha,xz" \ | ||
SHARE_LOG="yes" \ | ||
EXPERT="yes" | ||
# - uses: armbian/build@main | ||
# with: | ||
# armbian_token: "${{ secrets.GITHUB_TOKEN }}" # GitHub token | ||
# armbian_release: "${{ matrix.release }}" | ||
# armbian_target: "build" | ||
# armbian_board: "radxa-zero3" | ||
# armbian_ui: "${{ matrix.ui }}" | ||
# armbian_kernel_branch: "${{ matrix.kernel }}" | ||
# armbian_compress: "sha,xz" | ||
# armbian_artifacts: "build/output/images/" | ||
# armbian_release_tittle: "${{ steps.date.output.DATE }} Radxa Zero 3 W Images" | ||
# armbian_release_body: "Build with [Armbian tools](https://github.com/armbian/build)" |
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,2 +1,7 @@ | ||
# radxa-zero3w | ||
Images for radxa zero 3 w | ||
Repo with automated image builds for the [Radxa Zero 3W](https://docs.radxa.com/en/zero/zero3) | ||
|
||
They may work on the `E` as well but haven't been tested. | ||
|
||
## Customizations | ||
Armbian customizations are located in the armbian branch. Currently it just fixes the wifi driver but will have more in the future. |
Empty file.
This file was deleted.
Oops, something went wrong.