Code Monkey home page Code Monkey logo

flippy-openwrt-actions's Introduction

Flippy's OpenWrt packaging script Actions

View Chinese description | 查看中文说明

The packaging scripts of the Flippy repository are completely used, without any script modification, and only intelligent Action application development is carried out, making the packaging operation easier and more personalized.

Support vplus, beikeyun, l1pro, and Amlogic S9xxx STB are S905x3, S905x2, S922x, S905x, S905d, S905, S912.

Instructions

Introduce this Actions in the .github/workflows/*.yml cloud compilation script to use, for example *-packaging.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: s905d_s905x3_beikeyun
    KERNEL_VERSION_NAME: 5.10.125_5.15.50

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 no 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 up the packaging script source code repository. You can fill in the full URL of github such as https://github.com/unifreq/openwrt_packit or repository/project abbreviation such as unifreq/openwrt_packit
SCRIPT_REPO_BRANCH master Set the branch of the packaged script source code repository.
KERNEL_REPO_URL breakings/.../kernel Set the kernel download address, Used by default from kernel maintained by breakings.
KERNEL_VERSION_NAME 5.10.125_5.15.50 Set the kernel version,kernel library contains many original kernels of Flippy, you can view and choose to specify. you can specify a single kernel such as 5.10.125, you can choose multiple kernel to use _ connection such as 5.10.125_5.15.50 . The name of the kernel is subject to the folder name in the kernel directory.
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 5.10.125. 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 s905d_s905x3_beikeyun 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 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_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
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

💡 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 GITHUB_TOKEN and 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

flippy-openwrt-actions's People

Contributors

ophub avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.