Unverified Commit 7954e62b authored by wukongdaily's avatar wukongdaily Committed by GitHub
Browse files

Update build-rockchip.yml

parent 3c790734
......@@ -7,6 +7,10 @@ on:
description: '手动输入的多个 profile,并按逗号分隔'
required: true
default: 'friendlyarm_nanopi-r3s,radxa_zero-3e'
rootfs_partsize:
description: '设置根文件系统分区大小 (MB)'
required: true
default: '512'
jobs:
build:
......@@ -17,11 +21,12 @@ jobs:
uses: actions/checkout@v3
- name: Set executable permissions
run: chmod +x build.sh
run: chmod +x ${{ github.workspace }}/rockchip/build.sh
- name: Setup Docker and Build
run: |
profiles="${{ github.event.inputs.profile }}"
rootfs_partsize="${{ github.event.inputs.rootfs_partsize }}"
IFS=',' read -r -a profile_array <<< "$profiles"
......@@ -34,6 +39,7 @@ jobs:
-v "${{ github.workspace }}/files:/home/build/immortalwrt/files" \
-v "${{ github.workspace }}/rockchip/build.sh:/home/build/immortalwrt/build.sh" \
-e PROFILE=$profile \
-e ROOTFS_PARTSIZE=$rootfs_partsize \
immortalwrt/imagebuilder:rockchip-armv8-openwrt-24.10 /bin/bash /home/build/immortalwrt/build.sh
done
......@@ -46,14 +52,9 @@ jobs:
echo "$firmware_files"
echo "firmware_paths=$firmware_files" >> $GITHUB_ENV
- name: Package firmware files into a tar.gz
run: |
tar -czf firmware.tar.gz ${{ env.firmware_paths }}
echo "Firmware files packaged into firmware.tar.gz"
- name: Upload firmware
uses: actions/upload-artifact@v4
- name: Upload Release Asset(s)
uses: sekwah41/upload-release-assets@v1.1.0
with:
name: firmware
path: firmware.tar.gz
compression-level: 0
files: ${{ env.firmware_paths }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
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