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
d8bf7cbf
Unverified
Commit
d8bf7cbf
authored
Dec 07, 2024
by
wukongdaily
Committed by
GitHub
Dec 07, 2024
Browse files
Update and rename multitarget-arm.yml to build-rockchip.yml
parent
fb2a2463
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
.github/workflows/build-rockchip.yml
.github/workflows/build-rockchip.yml
+1
-11
No files found.
.github/workflows/
multitarget-arm
.yml
→
.github/workflows/
build-rockchip
.yml
View file @
d8bf7cbf
name
:
MultiTarget-Arm64
name
:
build-rockchip
on
:
on
:
workflow_dispatch
:
workflow_dispatch
:
...
@@ -23,10 +23,8 @@ jobs:
...
@@ -23,10 +23,8 @@ jobs:
run
:
|
run
:
|
profiles="${{ github.event.inputs.profile }}"
profiles="${{ github.event.inputs.profile }}"
# 使用 IFS 将逗号分隔的字符串转换成数组
IFS=',' read -r -a profile_array <<< "$profiles"
IFS=',' read -r -a profile_array <<< "$profiles"
# 遍历所有的 profile 并传递给 Docker
for profile in "${profile_array[@]}"; do
for profile in "${profile_array[@]}"; do
echo "Building for profile: $profile"
echo "Building for profile: $profile"
...
@@ -42,20 +40,12 @@ jobs:
...
@@ -42,20 +40,12 @@ jobs:
-
name
:
Locate squashfs firmware files
-
name
:
Locate squashfs firmware files
id
:
locate_files
id
:
locate_files
run
:
|
run
:
|
# 使用 find 查找文件并将结果存入 firmware_files 变量
firmware_files=$(find "${{ github.workspace }}/bin" -type f -name '*squashfs*.img.gz')
firmware_files=$(find "${{ github.workspace }}/bin" -type f -name '*squashfs*.img.gz')
# 确保路径使用逗号分隔
firmware_files=$(echo "$firmware_files" | tr '\n' ',')
firmware_files=$(echo "$firmware_files" | tr '\n' ',')
# 输出找到的文件路径
echo "Squashfs firmware files located:"
echo "Squashfs firmware files located:"
echo "$firmware_files"
echo "$firmware_files"
# 设置为环境变量,确保路径之间用逗号分隔
echo "firmware_paths=$firmware_files" >> $GITHUB_ENV
echo "firmware_paths=$firmware_files" >> $GITHUB_ENV
-
name
:
Upload firmware
-
name
:
Upload firmware
uses
:
actions/upload-artifact@v4
uses
:
actions/upload-artifact@v4
with
:
with
:
...
...
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