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

Update and rename multitarget-arm.yml to build-rockchip.yml

parent fb2a2463
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:
......
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