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
7954e62b
Unverified
Commit
7954e62b
authored
Dec 08, 2024
by
wukongdaily
Committed by
GitHub
Dec 08, 2024
Browse files
Update build-rockchip.yml
parent
3c790734
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
.github/workflows/build-rockchip.yml
.github/workflows/build-rockchip.yml
+12
-11
No files found.
.github/workflows/build-rockchip.yml
View file @
7954e62b
...
...
@@ -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 }}
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