Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mgqnfoqv7k2w
AutoBuildImmortalWrt
Commits
d4c712ca
Unverified
Commit
d4c712ca
authored
Dec 31, 2024
by
wukongdaily
Committed by
GitHub
Dec 31, 2024
Browse files
新增rockchip-23.05.4
parent
2bf179a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
107 additions
and
0 deletions
+107
-0
.github/workflows/build-rockchip-immortalWrt-23.05.4.yml
.github/workflows/build-rockchip-immortalWrt-23.05.4.yml
+67
-0
rockchip/23.05.4/build.sh
rockchip/23.05.4/build.sh
+40
-0
No files found.
.github/workflows/build-rockchip-immortalWrt-23.05.4.yml
0 → 100644
View file @
d4c712ca
name
:
build-rockchip-immortalWrt-23.05.4
on
:
workflow_dispatch
:
inputs
:
profile
:
description
:
|
输入 软路由型号(用逗号分隔的多个值),可选值如下:
ariaboard_photonicat,armsom_sige3,ezpro_mrkaio-m68s,firefly_roc-rk3328-cc,firefly_roc-rk3568-pc,friendlyarm_nanopc-t4,friendlyarm_nanopi-r2c,friendlyarm_nanopi-r2c-plus,friendlyarm_nanopi-r2s,friendlyarm_nanopi-r4s,friendlyarm_nanopi-r4s-enterprise,friendlyarm_nanopi-r4se,friendlyarm_nanopi-r5c,friendlyarm_nanopi-r5s,huake_guangmiao-g4c,lunzn_fastrhino-r66s,lunzn_fastrhino-r68s,lyt_t68m,pine64_rockpro64,radxa_rock-pi-4a,radxa_rock-pi-e,xunlong_orangepi-r1-plus,xunlong_orangepi-r1-plus-lts
required
:
true
default
:
'
friendlyarm_nanopi-r4s'
rootfs_partsize
:
description
:
'
设置软件包大小
单位(MB)'
required
:
true
default
:
'
1024'
jobs
:
build
:
runs-on
:
ubuntu-22.04
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v3
-
name
:
Set executable permissions
run
:
chmod +x ${{ github.workspace }}/rockchip/23.05.4/build.sh
-
name
:
Building Rockchip ImmortalWrt
run
:
|
profiles="${{ github.event.inputs.profile }}"
rootfs_partsize="${{ github.event.inputs.rootfs_partsize }}"
IFS=',' read -r -a profile_array <<< "$profiles"
for profile in "${profile_array[@]}"; do
echo "Building for profile: $profile"
docker run --rm -i \
--user root \
-v "${{ github.workspace }}/bin:/home/build/immortalwrt/bin" \
-v "${{ github.workspace }}/files:/home/build/immortalwrt/files" \
-v "${{ github.workspace }}/rockchip/imm.config:/home/build/immortalwrt/.config" \
-v "${{ github.workspace }}/rockchip/23.05.4/build.sh:/home/build/immortalwrt/build.sh" \
-e PROFILE=$profile \
-e ROOTFS_PARTSIZE=$rootfs_partsize \
immortalwrt/imagebuilder:rockchip-armv8-openwrt-23.05.4 /bin/bash /home/build/immortalwrt/build.sh
done
-
name
:
Create GitHub Release Info
uses
:
softprops/action-gh-release@v2.1.0
with
:
tag_name
:
Autobuild-23.05.4
name
:
ImmortWrt-Rockchip
body_path
:
${{ github.workspace }}/info.md
draft
:
false
prerelease
:
false
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Upload ImmortWrt as release assets
uses
:
softprops/action-gh-release@v2.1.0
with
:
tag_name
:
Autobuild-23.05.4
files
:
${{ github.workspace }}/bin/targets/rockchip/armv8/*.img.gz
token
:
${{ secrets.GITHUB_TOKEN }}
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
rockchip/23.05.4/build.sh
0 → 100644
View file @
d4c712ca
#!/bin/bash
# yml 传入的路由器型号 PROFILE
echo
"Building for profile:
$PROFILE
"
# yml 传入的固件大小 ROOTFS_PARTSIZE
echo
"Building for ROOTFS_PARTSIZE:
$ROOTFS_PARTSIZE
"
# 输出调试信息
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- Starting build process..."
# 定义所需安装的包列表 23.05.4
PACKAGES
=
""
PACKAGES
=
"
$PACKAGES
curl"
PACKAGES
=
"
$PACKAGES
luci-i18n-diskman-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-i18n-opkg-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-i18n-firewall-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-i18n-filebrowser-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-app-argon-config"
PACKAGES
=
"
$PACKAGES
luci-i18n-argon-config-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-i18n-ttyd-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-i18n-passwall-zh-cn"
PACKAGES
=
"
$PACKAGES
luci-app-openclash"
PACKAGES
=
"
$PACKAGES
luci-i18n-homeproxy-zh-cn"
PACKAGES
=
"
$PACKAGES
openssh-sftp-server"
PACKAGES
=
"
$PACKAGES
luci-i18n-dockerman-zh-cn"
# 构建镜像
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- Building image with the following packages:"
echo
"
$PACKAGES
"
make image
PROFILE
=
$PROFILE
PACKAGES
=
"
$PACKAGES
"
FILES
=
"/home/build/immortalwrt/files"
ROOTFS_PARTSIZE
=
$ROOTFS_PARTSIZE
if
[
$?
-ne
0
]
;
then
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- Error: Build failed!"
exit
1
fi
echo
"
$(
date
'+%Y-%m-%d %H:%M:%S'
)
- Build completed successfully."
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment