-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
0 parents
commit b268d92
Showing
1 changed file
with
78 additions
and
0 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,78 @@ | ||
name: "Build generic Armbian X86 SDK" | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
build: | ||
name: "Build generic Armbian X86 SDK" | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Import GPG key | ||
env: | ||
GPG_KEY1: ${{ secrets.GPG_KEY1 }} | ||
if: env.GPG_KEY1 != null | ||
uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_KEY1 }} | ||
passphrase: ${{ secrets.GPG_PASSPHRASE1 }} | ||
|
||
|
||
|
||
- name: "Checkout userpatches repo: armbian/os" | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: armbian/os | ||
fetch-depth: 0 | ||
clean: false | ||
path: os | ||
|
||
- name: Read version and userpatches path | ||
run: | | ||
ls -l | ||
pwd | sed 's/$/\/os\/userpatches/' | sed 's/^/ARMBIAN_USERPATCHES=/' >> $GITHUB_ENV | ||
cat os/stable.json | jq '.version' | sed "s/\"//g" | sed 's/^/ARMBIAN_VERSION=/' >> $GITHUB_ENV | ||
- 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: "legacy" # branch: legacy, current, edge, etc. | ||
armbian_release: "jammy" # userspace: jammy, bookworm, trixie, etc. | ||
armbian_ui: "minimal" # minimal, server, xfce, gnome, etc. | ||
armbian_compress: "sha,img,xz" # compression method: sha,img,xz | ||
armbian_version: "${{ env.ARMBIAN_VERSION }}" # version override | ||
armbian_extensions: "amazingfated-rk3588" # list extensions | ||
armbian_userpatches: "${{ env.ARMBIAN_USERPATCHES }}" # | ||
armbian_board: "rock-5b" # build target from https://github.com/armbian/build/tree/main/config/boards | ||
|
||
- name: Sign | ||
env: | ||
GPG_PASSPHRASE1: ${{ secrets.GPG_PASSPHRASE1 }} | ||
if: env.GPG_PASSPHRASE1 != null | ||
run: | | ||
echo ${{ secrets.GPG_PASSPHRASE1 }} | gpg --passphrase-fd 0 --armor --detach-sign --pinentry-mode loopback --batch --yes ${{ env.ARMBIAN_SCRIPT_PATH }}/output/images/*.img*.xz | ||
#- name: "Upload to workflow artifacts" | ||
# if: ${{ inputs.armbian_upload == 'workflow' }} | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: armbian-artifacts | ||
# path: ${{ env.ARMBIAN_SCRIPT_PATH }} | ||
|
||
- uses: ncipollo/release-action@v1 | ||
#if: ${{ inputs.armbian_upload == 'releases' }} | ||
with: | ||
tag: "sdk" | ||
name: "Armbian SDK" | ||
artifacts: "${{ env.ARMBIAN_SCRIPT_PATH }}/output/images/*" | ||
allowUpdates: true | ||
removeArtifacts: true | ||
replacesArtifacts: true | ||
makeLatest: true | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
body: | | ||
Unofficial Armbian artifacts with [official tools](https://github.com/armbian/build) |