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