88 - name : Checkout repository
99 uses : actions/checkout@v6
1010
11- - name : Set up build environment
11+ - name : Initialize the build environment
1212 run : |
1313 sudo apt-get update
1414 sudo apt-get install -y $(curl -fsSL https://ophub.org/ubuntu2404-make-openwrt-depends)
1515
16- - name : Download and extract OpenWrt SDK
16+ - name : Download and extract the OpenWrt SDK
1717 run : |
1818 wget https://downloads.openwrt.org/releases/24.10.5/targets/armsr/armv8/openwrt-sdk-24.10.5-armsr-armv8_gcc-13.3.0_musl.Linux-x86_64.tar.zst
1919 tar -I zstd -xf openwrt-sdk-24.10.5-armsr-armv8_gcc-13.3.0_musl.Linux-x86_64.tar.zst
2020 mv openwrt-sdk-24.10.5-armsr-armv8_gcc-13.3.0_musl.Linux-x86_64 openwrt-sdk
2121
22- - name : Update feeds in SDK
22+ - name : Update and install SDK feeds
2323 working-directory : openwrt-sdk
2424 run : |
2525 ./scripts/feeds update -a
2626 ./scripts/feeds install -a
2727 ./scripts/feeds install luci luci-base luci-lib-ipkg luci-i18n-base-ru luci-i18n-base-zh-cn kmod-tun
2828
29- - name : Add luci-app-amlogic package
29+ - name : Add the luci-app-amlogic package
3030 working-directory : openwrt-sdk
3131 run : |
3232 git clone https://github.com/ophub/luci-app-amlogic.git package/luci-app-amlogic
3333 ls -d package/luci-app-amlogic
3434
35- - name : Configure OpenWrt
35+ - name : Configure the OpenWrt build
3636 working-directory : openwrt-sdk
3737 run : |
3838 echo "CONFIG_PACKAGE_luci-app-amlogic=y" >> .config
@@ -44,38 +44,38 @@ jobs:
4444 cat .config | grep luci-app-amlogic
4545 cat .config | grep luci-i18n-amlogic-ru
4646 cat .config | grep luci-i18n-amlogic-zh-cn
47- - name : Compile luci-app-amlogic package
47+ - name : Compile the luci-app-amlogic package
4848 working-directory : openwrt-sdk
4949 run : |
5050 make package/luci-app-amlogic/{clean,compile} V=99 -j$(nproc) || { cat tmp/.packagedeps-luci-app-amlogic; exit 1; }
5151
52- - name : Check compiled packages
52+ - name : Verify compiled packages
5353 working-directory : openwrt-sdk
5454 run : |
5555 find bin/packages/ -type f -name "*.ipk"
5656
57- - name : Collect compiled packages
57+ - name : Collect and identify compiled packages
5858 run : |
5959 mkdir -p artifacts
6060 find openwrt-sdk/bin/packages/ -type f -name "luci-app-amlogic*.ipk" -exec cp {} artifacts/ \;
6161 find openwrt-sdk/bin/packages/ -type f -name "luci-i18n-amlogic*.ipk" -exec cp {} artifacts/ \;
6262
63- echo "=== Files in artifacts directory ==="
63+ echo "=== Collected package files ==="
6464 ls -lh artifacts/
6565
66- # Get the main package file (luci-app-amlogic)
66+ # Identify the main package file
6767 PKG_FILE="$(find artifacts/ -name "luci-app-amlogic*.ipk" -type f | head -n 1)"
6868 PKG_NAME="$(basename "${PKG_FILE}")"
69- echo "Found main package: ${PKG_NAME}"
69+ echo "Main package: ${PKG_NAME}"
7070
71- # Get version from package name
71+ # Extract version from package filename
7272 VERSION=$(echo "${PKG_NAME}" | cut -d'_' -f2 | cut -d'-' -f1)
73- echo "Extracted Version : ${VERSION}"
73+ echo "Package version : ${VERSION}"
7474
75- # Set version as environment variable for later steps
75+ # Export version for subsequent steps
7676 echo "LUCI_VERSION=${VERSION}" >> $GITHUB_ENV
7777
78- - name : Create Release and Upload Packages
78+ - name : Create Release and upload packages
7979 uses : ncipollo/release-action@main
8080 with :
8181 tag : ${{ env.LUCI_VERSION }}
0 commit comments