ULO Autobuilder #9
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
# | |
# Copyright (C) 2024 nosignals | |
# | |
name: ULO Autobuilder | |
on: | |
workflow_dispatch: | |
inputs: | |
notes: | |
description: 'FYI : ROOTFS at repository must 1 only' | |
required: false | |
default: '-' | |
type: string | |
kernel: | |
description: 'Kernel Version (ex. 6.6.6, 6.1.31-localversion)' | |
required: true | |
default: '6.6.6' | |
type: string | |
devices: | |
description: "Devices" | |
required: true | |
default: "s905x" | |
type: choice | |
options: | |
- s905x | |
- s905x2 | |
- s905x3 | |
- s905x4 | |
- h5-orangepi-zeroplus2 | |
- h5-orangepi-zeroplus | |
- h5-orangepi-prime | |
- h5-orangepi-pc2 | |
- h6-orangepi-lite2 | |
- h6-orangepi-1plus | |
- h6-orangepi-3 | |
- h6-orangepi-3lts | |
- h616-orangepi-zero2 | |
- h618-orangepi-zero2w | |
- h618-orangepi-zero3 | |
- rk3566-orangepi-3b | |
- rk3588-orangepi-5plus | |
- rk3588s-orangepi-5 | |
rootfs_size: | |
description: "ROOTFS Size, min 640 (756, 1024, 2048, etc)" | |
required: true | |
default: '1024' | |
type: string | |
fwinfo: | |
description: 'Firmware Information' | |
required: true | |
default: 'your custom information at release pages' | |
type: string | |
jobs: | |
build_ipk: | |
permissions: | |
contents: write | |
name: ULO Autobuilder | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cleanup and Installing Prerequisites | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
docker rmi `docker images -q` | |
sudo -E apt-get update | |
sudo -E apt-get -y install lolcat build-essential clang flex bison g++ gawk gcc-multilib g++-multilib gettext git libncurses-dev libssl-dev python3-distutils rsync unzip zlib1g-dev file wget | |
sudo -E apt-get -y autoremove --purge | |
sudo -E apt-get clean | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
with: | |
ref: main | |
- name: Building OpenWrt | |
run: | | |
sudo ./ulo -k ${{ inputs.kernel }} -m ${{ inputs.devices }} -s ${{ inputs.rootfs_size }} | |
- name: Creating Package Artifact | |
run: | | |
mkdir -p ./artifact | |
cp -rf ./out/${{ inputs.devices }}/* ./artifact/ | |
- name: Delivering Package | |
uses: actions/upload-artifact@v2 | |
with: | |
name: openwrt_package | |
path: ./artifact/* | |
- name: Upload release asset | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ./artifact/* | |
tag: ${{ inputs.devices }} | |
file_glob: true | |
body: | | |
## OpenWRT Release for ${{ inputs.devices }} devices | |
ULO-Builder Release from Github Workflow | |
### OpenWrt Image Information | |
- Firmware Details : | |
- Devices type : ${{ inputs.devices }} | |
- Kernel version : ${{ inputs.kernel }} | |
- ROOTFS Size : ${{ inputs.rootfs_size }} | |
- Firmware Information : | |
- ${{ inputs.fwinfo }} |