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
0602c77e
"vscode:/vscode.git/clone" did not exist on "1c25a902e6f92a47fe95a0fe0e984891e4cb62a0"
Unverified
Commit
0602c77e
authored
Jul 27, 2025
by
wukongdaily
Committed by
GitHub
Jul 27, 2025
Browse files
1增加直接使用底包快速构建的功能选项2增加更多内核选项
parent
3243ebf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
99 additions
and
10 deletions
+99
-10
.github/workflows/build-N1.yml
.github/workflows/build-N1.yml
+95
-8
n1/info.md
n1/info.md
+4
-2
No files found.
.github/workflows/build-N1.yml
View file @
0602c77e
...
...
@@ -5,13 +5,82 @@ on:
openwrt_kernel
:
description
:
"
选择构建的内核"
required
:
false
default
:
"
6.
1.146
"
default
:
"
6.
6.93
"
type
:
choice
options
:
-
5.4.291
-
5.10.235
-
5.15.189
-
6.1.121
-
6.1.122
-
6.1.123
-
6.1.124
-
6.1.126
-
6.1.127
-
6.1.128
-
6.1.129
-
6.1.130
-
6.1.131
-
6.1.132
-
6.1.133
-
6.1.134
-
6.1.135
-
6.1.136
-
6.1.138
-
6.1.139
-
6.1.140
-
6.1.141
-
6.1.142
-
6.1.144
-
6.1.146
-
6.6.67
-
6.6.68
-
6.6.69
-
6.6.70
-
6.6.71
-
6.6.72
-
6.6.74
-
6.6.76
-
6.6.79
-
6.6.80
-
6.6.81
-
6.6.83
-
6.6.84
-
6.6.85
-
6.6.86
-
6.6.87
-
6.6.88
-
6.6.89
-
6.6.90
-
6.6.91
-
6.6.92
-
6.6.93
-
6.6.94
-
6.6.95
-
6.6.97
-
6.6.99
-
6.12.16
-
6.12.17
-
6.12.18
-
6.12.19
-
6.12.20
-
6.12.21
-
6.12.22
-
6.12.23
-
6.12.24
-
6.12.25
-
6.12.26
-
6.12.28
-
6.12.29
-
6.12.30
-
6.12.31
-
6.12.32
-
6.12.33
-
6.12.34
-
6.12.35
-
6.12.37
-
6.12.39
include_docker
:
description
:
|
是否编译 Docker 插件
...
...
@@ -21,6 +90,11 @@ on:
options
:
-
'
yes'
-
'
no'
skip_imagebuilder
:
description
:
"
直接使用底包快速构建固件,
忽略自定义插件
----(跳过
ImageBuilder)"
required
:
false
default
:
false
type
:
boolean
replace_banner
:
description
:
'
替换为ImmortalWrt的banner信息'
required
:
false
...
...
@@ -33,6 +107,10 @@ on:
type
:
choice
options
:
-
'
1024'
builder_name
:
description
:
"
设置打包作者的名称"
required
:
true
default
:
'
wukongdaily'
jobs
:
build
:
...
...
@@ -47,14 +125,16 @@ jobs:
-
name
:
Debug workspace contents
run
:
ls -R
-
name
:
处理是否替换banner信息
if
:
${{ github.event.inputs.replace_banner == 'true' }}
-
name
:
处理是否替换
banner
信息
if
:
${{
github.event.inputs.skip_imagebuilder == 'false' &&
github.event.inputs.replace_banner == 'true' }}
run
:
|
# 使用ImageBuilder构建 且用户勾选了替换banner时
cp n1/99-banner.sh files/etc/uci-defaults/
-
name
:
Building N1 ImmortalWrt
-
name
:
Building N1 ImmortalWrt rootfs
if
:
${{ github.event.inputs.skip_imagebuilder != 'true' }}
run
:
|
echo "✅ 使用 ImageBuilder 构建 rootfs"
profiles="generic"
include_docker="${{ github.event.inputs.include_docker }}"
rootfs_partsize="${{ github.event.inputs.rootfs_partsize }}"
...
...
@@ -78,6 +158,14 @@ jobs:
-e ROOTFS_PARTSIZE=$rootfs_partsize \
immortalwrt/imagebuilder:armsr-armv8-openwrt-24.10.2 /bin/bash /home/build/immortalwrt/build.sh
done
-
name
:
Download prebuilt rootfs.tar.gz
if
:
${{ github.event.inputs.skip_imagebuilder == 'true' }}
run
:
|
echo "📦 正在下载预构建 rootfs"
mkdir -p bin/targets/armsr/armv8
curl -L -o bin/targets/armsr/armv8/openwrt-armvirt-64-default-rootfs.tar.gz \
https://github.com/wukongdaily/AutoBuildImmortalWrt/releases/download/rootfs/immortalwrt-24.10.2-armsr-armv8-generic-rootfs.tar.gz
-
name
:
查找rootfs.tar.gz所在路径
id
:
find_rootfs
...
...
@@ -98,7 +186,7 @@ jobs:
PACKAGE_SOC
:
s905d
KERNEL_VERSION_NAME
:
${{ inputs.openwrt_kernel }}
KERNEL_AUTO_LATEST
:
false
WHOAMI
:
"
wukongdaily"
WHOAMI
:
${{ inputs.builder_name }}
-
name
:
Rename .img.gz file
id
:
rename
...
...
@@ -119,6 +207,5 @@ jobs:
body_path
:
${{ github.workspace }}/n1/info.md
files
:
|
${{ env.PACKAGED_OUTPUTPATH }}/*.img.gz
${{ github.workspace }}/bin/targets/armsr/armv8/*rootfs.tar.gz
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
n1/info.md
View file @
0602c77e
## ImmortalWrt for 斐讯N1
#### luci版本 24.10.2 固件不是传统ext4和squashfs格式 而是btrfs格式
#### luci版本 24.10.2 固件不是传统ext4和squashfs格式 而是btrfs格式
支持快照
#### 后台地址 `没有没有没有,需查询` 详见下文
#### 用户名 `root` 密码:password
#### 是否带docker: 根据用户选择
#### 默认软件包大小 1GB
/根据用户选择
#### 默认软件包大小 1GB
#### 内核版本:根据用户选择
#### 晶晨宝盒:✅ 自带 用于写入emmc 写入的时候务必关闭docker 和docker自启动 (这一步等以后稳定再考虑写入 非必要不写入)
#### rootfs.tar.gz 构建采用ImmortalWrt的ImageBuilder
#### 打包img 采用`onhub/amlogic-s9xxx-openwrt` 或 `flippy-openwrt-actions`
#### 默认底包位置:https://github.com/wukongdaily/AutoBuildImmortalWrt/releases/tag/rootfs
### 斐讯N1为单网口设备 网线接上路由器 启动后默认是自动获取ip的模式<br> 请在上级路由器的dhcp列表中查询具体的局域网ip
### 若后续想设置其他ip或者旁路 请在web页面自行设置即可 <br> 总之 这个逻辑就是默认让它有网 和 普通电脑、NAS 无异
...
...
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