Skip to content

OpenWrt packaging Actions. Support Amlogic, Rockchip and Allwinner boxes.

License

Notifications You must be signed in to change notification settings

andyegg/flippy-openwrt-actions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Function description

View Chinese description | 查看中文说明

unifreq/openwrt_packit is an OpenWrt packaging script repository developed by Flippy. Support Allwinner (V-Plus Cloud), and Rockchip (BeikeYun, Chainedbox L1 Pro, FastRhino R66S, FastRhino R68S, HinLink H88K/H68K, Radxa 5b/E25), and Amlogic S9xxx boxes are S905x3, S905x2, S922x, S905x, S905d, S905, S912, etc.

This Action uses his packaging script, without any modification, and only carries out intelligent action application development, making the github Actions packaging easier and more personalized.

Instructions

Introduce this Actions in the .github/workflows/*.yml cloud compilation script to use, for example packaging-openwrt.yml. code show as below:

- name: Package OpenWrt Firmware
  uses: ophub/flippy-openwrt-actions@main
  env:
    OPENWRT_ARMVIRT: openwrt/bin/targets/*/*/*.tar.gz
    PACKAGE_SOC: all
    KERNEL_VERSION_NAME: 6.1.10_5.15.50
    GH_TOKEN: ${{ secrets.GH_TOKEN }}

Optional parameter description

According to the latest kernel packaging script released by Flippy, optional parameter configuration is carried out on package file, make.env, select kernel version, select box SoC, etc.

parameter Defaults Description
OPENWRT_ARMVIRT_PATH None required. Set the file path of openwrt-armvirt-64-default-rootfs.tar.gz , you can use a relative path such as openwrt/bin/targets/*/*/*.tar.gz or the network file download address. E.g https://github.com/*/releases/*/*.tar.gz .
SCRIPT_REPO_URL unifreq/openwrt_packit Set the <owner>/<repo> of the packaging script source code repository.
SCRIPT_REPO_BRANCH master Set the branch of the packaged script source code repository.
KERNEL_REPO_URL breakings/OpenWrt Set the <owner>/<repo> of the kernel download repository, Used by default from Kernel Releases maintained by breakings.
KERNEL_VERSION_NAME 6.1.10_5.15.50 Set the kernel version,you can view and choose to specify. you can specify a single kernel such as 6.1.10, you can choose multiple kernel to use _ connection such as 6.1.10_5.15.50
KERNEL_AUTO_LATEST true Set whether to automatically adopt the latest version of the kernel of the same series. When it is true, it will automatically find in the kernel library whether there is an updated version of the kernel specified in KERNEL_VERSION_NAME such as 6.1.10. If there is the latest version of same series, it will automatically Replace with the latest version. When set to false, the specified version of the kernel will be compiled.
PACKAGE_SOC all Set the SoC of the packaging box, the default all packs all boxes, you can specify a single box such as s905x3, you can choose multiple boxes to use _ connection such as s905x3_s905d . SOC code of each box is: vplus, beikeyun, l1pro, rock5b, h88k, r66s, r68s, h68k, e25, s905, s905d, s905x2, s905x3, s912, s922x, s922x-n2, qemu, diy, Note: s922x-n2 is s922x-odroid-n2, diy is a custom box.
GZIP_IMGS auto Set the file compression format after packaging, optional values are .gz (default) / .xz / .zip / .zst / .7z
SELECT_PACKITPATH openwrt_packit Set the packit directory under /opt
SELECT_OUTPUTPATH output Set the directory name of the firmware output in the ${SELECT_PACKITPATH} directory.
SCRIPT_VPLUS mk_h6_vplus.sh Set the script file name for packaging h6 vplus
SCRIPT_BEIKEYUN mk_rk3328_beikeyun.sh Set the script file name for packaging rk3328 beikeyun
SCRIPT_L1PRO mk_rk3328_l1pro.sh Set the script file name for packaging rk3328 l1pro
SCRIPT_ROCK5B mk_rk3588_rock5b.sh Set the script file name for packaging rk3588 rock5b
SCRIPT_H88K mk_rk3588_h88k.sh Set the script file name for packaging rk3588 h88k/ak88
SCRIPT_R66S mk_rk3568_r66s.sh Set the script file name for packaging rk3568 r66s
SCRIPT_R68S mk_rk3568_r68s.sh Set the script file name for packaging rk3568 r68s
SCRIPT_H66K mk_rk3568_h66k.sh Set the script file name for packaging rk3568 h66k
SCRIPT_H68K mk_rk3568_h68k.sh Set the script file name for packaging rk3568 h68k
SCRIPT_E25 mk_rk3568_e25.sh Set the script file name for packaging rk3568 e25
SCRIPT_PHOTONICAT mk_rk3568_photonicat.sh Set the script file name for packaging rk3568 photonicat
SCRIPT_S905 mk_s905_mxqpro+.sh Set the script file name for packaging s905 mxqpro+
SCRIPT_S905D mk_s905d_n1.sh Set the script file name for packaging s905d n1
SCRIPT_S905X2 mk_s905x2_x96max.sh Set the script file name for packaging s905x2 x96max
SCRIPT_S905X3 mk_s905x3_multi.sh Set the script file name for packaging s905x3 multi
SCRIPT_S912 mk_s912_zyxq.sh Set the script file name for packaging s912 zyxq
SCRIPT_S922X mk_s922x_gtking.sh Set the script file name for packaging s922x gtking
SCRIPT_S922X_N2 mk_s922x_odroid-n2.sh Set the script file name for packaging s922x odroid-n2
SCRIPT_QEMU mk_qemu-aarch64_img.sh Set the script file name for packaging qemu
SCRIPT_DIY mk_diy.sh Set the script file name for packaging diy
SCRIPT_DIY_PATH None Set the load path for SCRIPT_DIY files. You can use a URL such as https://weburl/mydiyfile or a relative path in your repository such as script/mk_s905w.sh
WHOAMI flippy Set the value of the WHOAMI parameter in make.env
OPENWRT_VER auto Set the value of the OPENWRT_VER parameter in make.env. The default auto will automatically inherit the assignment in the file, and when set to other parameters, it will be replaced with custom parameters.
SW_FLOWOFFLOAD 1 Set the value of the SW_FLOWOFFLOAD parameter in make.env
HW_FLOWOFFLOAD 0 Set the value of the HW_FLOWOFFLOAD parameter in make.env
SFE_FLOW 1 Set the value of the SFE_FLOW parameter in make.env
ENABLE_WIFI_K504 1 Set the value of the ENABLE_WIFI_K504 parameter in make.env
ENABLE_WIFI_K510 1 Set the value of the ENABLE_WIFI_K510 parameter in make.env
DISTRIB_REVISION R$(date +%m.%d) Set the value of the DISTRIB_REVISION parameter in make.env
DISTRIB_DESCRIPTION OpenWrt Set the value of the DISTRIB_DESCRIPTION parameter in make.env
GH_TOKEN None Optional. Set ${{ secrets.GH_TOKEN }} for api.github.com query.

💡 Normally, you can use the default parameters, but you can also configure them according to your needs. For example, after Flippy renamed the packaging script, the original default script file cannot be found, and the firmware version number in make.env has not been updated. You can use optional parameters for real-time designation and personalized configuration.

Output parameter description

According to the standard of github.com, 3 environment variables are output to facilitate the subsequent use of the compilation step. Since github.com has recently modified the settings of the fork repository, the read and write permissions of Workflow are disabled by default, so uploading to Releases requires adding ${{ secrets.GITHUB_TOKEN }} and ${{ secrets.GH_TOKEN }} to the repository and setting Workflow read and write permissions, see the instructions for details.

parameter For example Description
${{ env.PACKAGED_OUTPUTPATH }} /opt/openwrt_packit/output OpenWrt firmware storage path
${{ env.PACKAGED_OUTPUTDATE }} 07.15.1058 Packing date
${{ env.PACKAGED_STATUS }} success / failure Package status

Links

License

The flippy-openwrt-actions © OPHUB is licensed under GPL-2.0

About

OpenWrt packaging Actions. Support Amlogic, Rockchip and Allwinner boxes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%