Unverified Commit 60cd1bc3 authored by wukongdaily's avatar wukongdaily Committed by GitHub
Browse files

更换打包工具为flippy-openwrt-actions

parent 53104ce0
......@@ -2,6 +2,16 @@ name: build-N1
on:
workflow_dispatch:
inputs:
openwrt_kernel:
description: "选择构建的内核"
required: false
default: "6.1.146"
type: choice
options:
- 5.15.189
- 6.1.146
- 6.6.93
- 6.12.39
include_docker:
description: |
是否编译 Docker 插件
......@@ -11,22 +21,21 @@ on:
options:
- 'yes'
- 'no'
replace_banner:
description: '是否替换为ImmortalWrt的banner信息'
required: false
default: false
type: boolean
rootfs_partsize:
description: '设置软件包大小 单位(MB) 最大数值10240'
description: '软件包大小1G固定'
required: true
default: '1024'
openwrt_kernel:
description: "选择构建的内核"
required: false
default: "6.1.y"
default: "1024"
type: choice
options:
- 5.4.y
- 5.10.y
- 5.15.y
- 6.1.y
- 6.6.y
- 6.12.y
- '1024'
jobs:
build:
......@@ -42,7 +51,8 @@ jobs:
- name: Debug workspace contents
run: ls -R
- name: Copy banner
- name: 处理是否替换banner信息
if: ${{ github.event.inputs.replace_banner == 'true' }}
run: |
cp n1/99-banner.sh files/etc/uci-defaults/
......@@ -72,9 +82,6 @@ jobs:
-e ROOTFS_PARTSIZE=$rootfs_partsize \
immortalwrt/imagebuilder:armsr-armv8-openwrt-24.10.2 /bin/bash /home/build/immortalwrt/build.sh
done
- name: 检查rootfs是否存在
run: ls -lh ${{ github.workspace }}/bin/targets/armsr/armv8/
- name: 查找rootfs.tar.gz所在路径
id: find_rootfs
......@@ -87,15 +94,14 @@ jobs:
fi
echo "file=$ROOTFS_FILE" >> $GITHUB_OUTPUT
- name: Package armsr-armv8 as ImmortalWrt for N1
uses: ophub/amlogic-s9xxx-openwrt@main
with:
openwrt_path: ${{ steps.find_rootfs.outputs.file }}
openwrt_board: s905d
openwrt_size: "256/${{ github.event.inputs.rootfs_partsize }}"
openwrt_kernel: ${{ inputs.openwrt_kernel }}
builder_name: "wukongdaily"
auto_kernel: true
- name: Package armsr-armv8 as ImmortalWrt for N1
uses: ophub/flippy-openwrt-actions@main
if: ${{ steps.down.outputs.status }} == 'success' && !cancelled()
env:
OPENWRT_ARMVIRT: ${{ steps.find_rootfs.outputs.file }}
PACKAGE_SOC: s905d
KERNEL_VERSION_NAME: ${{ inputs.openwrt_kernel }}
WHOAMI: "wukongdaily"
- name: Rename .img.gz file
id: rename
......
......@@ -59,6 +59,7 @@ https://www.youtube.com/watch?v=7i6BQeitUtE
https://wkdaily.cpolar.cn/15
# 🌟鸣谢
### https://github.com/immortalwrt
### https://github.com/ophub/flippy-openwrt-actions
### https://github.com/ophub/amlogic-s9xxx-openwrt
### https://github.com/sirpdboy
### https://github.com/wukongdaily/ib-overlay
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment