@@ -54,27 +54,27 @@ jobs:
5454 run : |
5555 case "${{ inputs.board }}" in
5656 raspberrypi-rpi64)
57- echo "BOOTLOADER=rpi64_boot " >> $GITHUB_ENV
58- echo "TARGET =aarch64" >> $GITHUB_ENV
57+ echo "BOOTLOADER=rpi64-boot " >> $GITHUB_ENV
58+ echo "ARCH =aarch64" >> $GITHUB_ENV
5959 echo "BUILD_EMMC=false" >> $GITHUB_ENV
6060 ;;
6161 bananapi-bpi-r3)
62- echo "BOOTLOADER_SD=bpi_r3_sd_boot " >> $GITHUB_ENV
63- echo "BOOTLOADER_EMMC=bpi_r3_emmc_boot " >> $GITHUB_ENV
64- echo "TARGET =aarch64" >> $GITHUB_ENV
62+ echo "BOOTLOADER_SD=bpi-r3-sd-boot " >> $GITHUB_ENV
63+ echo "BOOTLOADER_EMMC=bpi-r3-emmc_boot " >> $GITHUB_ENV
64+ echo "ARCH =aarch64" >> $GITHUB_ENV
6565 echo "BUILD_EMMC=true" >> $GITHUB_ENV
6666 ;;
6767 friendlyarm-nanopi-r2s)
68- echo "BOOTLOADER=nanopi_r2s_boot " >> $GITHUB_ENV
69- echo "TARGET =aarch64" >> $GITHUB_ENV
68+ echo "BOOTLOADER=nanopi-r2s-boot " >> $GITHUB_ENV
69+ echo "ARCH =aarch64" >> $GITHUB_ENV
7070 echo "BUILD_EMMC=false" >> $GITHUB_ENV
7171 ;;
7272 *)
7373 echo "Error: Unknown board ${{ inputs.board }}"
7474 exit 1
7575 ;;
7676 esac
77- echo "Target : $TARGET for board: ${{ inputs.board }}"
77+ echo "Arch : $ARCH for board: ${{ inputs.board }}"
7878 if [ "$BUILD_EMMC" = "true" ]; then
7979 echo "Building both SD and eMMC images"
8080 echo "SD Bootloader: $BOOTLOADER_SD"
@@ -138,7 +138,7 @@ jobs:
138138
139139 if [ "$BUILD_EMMC" = "true" ]; then
140140 # Copy Infix artifacts to both SD and eMMC output directories
141- gh run download ${INFIX_RUN_ID} --name artifact-${TARGET } --dir temp_infix/
141+ gh run download ${INFIX_RUN_ID} --name artifact-${ARCH } --dir temp_infix/
142142
143143 cd temp_infix/
144144 tar -xzf *.tar.gz --strip-components=1 -C ../output_sd/images/
@@ -152,7 +152,7 @@ jobs:
152152 ls -la output_emmc/images/
153153 else
154154 # Single output directory for SD-only boards
155- gh run download ${INFIX_RUN_ID} --name artifact-${TARGET } --dir temp_infix/
155+ gh run download ${INFIX_RUN_ID} --name artifact-${ARCH } --dir temp_infix/
156156
157157 # Extract Infix directly to output/images
158158 cd temp_infix/
@@ -186,7 +186,7 @@ jobs:
186186 rm -rf temp_bootloader_emmc/
187187
188188 # Download Infix once and extract to both directories
189- gh release download latest --pattern "*${TARGET }*" --dir temp_infix/
189+ gh release download latest --pattern "*${ARCH }*" --dir temp_infix/
190190 cd temp_infix/
191191 tar -xzf *.tar.gz --strip-components=1 -C ../output_sd/images/
192192 tar -xzf *.tar.gz --strip-components=1 -C ../output_emmc/images/
@@ -206,7 +206,7 @@ jobs:
206206 rm -rf temp_bootloader/
207207
208208 # Download latest Infix release
209- gh release download latest --pattern "*${TARGET }*" --dir temp_infix/
209+ gh release download latest --pattern "*${ARCH }*" --dir temp_infix/
210210 cd temp_infix/
211211 tar -xzf *.tar.gz --strip-components=1 -C ../output/images/
212212 cd ../
@@ -249,7 +249,7 @@ jobs:
249249 export BR2_EXTERNAL_INFIX_PATH=$PWD
250250 export RELEASE=""
251251 export INFIX_ID="infix"
252- ./utils/mkimage.sh ${{ inputs.board }}
252+ ./utils/mkimage.sh -t sdcard ${{ inputs.board }}
253253 fi
254254
255255 - name : Create eMMC image
@@ -347,7 +347,7 @@ jobs:
347347 # SD Card & eMMC Image Build Complete! 🚀
348348
349349 **Board:** ${{ inputs.board }}
350- **Target :** ${{ env.TARGET }}
350+ **Arch :** ${{ env.ARCH }}
351351 **SD Bootloader:** ${{ env.BOOTLOADER_SD }}
352352 **eMMC Bootloader:** ${{ env.BOOTLOADER_EMMC }}
353353 **Artifact Source:** ${{ inputs.use_latest_release && 'Latest Release' || 'Latest Workflow Run' }}
@@ -363,7 +363,7 @@ jobs:
363363 # SD Card Image Build Complete! 🚀
364364
365365 **Board:** ${{ inputs.board }}
366- **Target :** ${{ env.TARGET }}
366+ **Arch :** ${{ env.ARCH }}
367367 **Bootloader:** ${{ env.BOOTLOADER }}
368368 **Artifact Source:** ${{ inputs.use_latest_release && 'Latest Release' || 'Latest Workflow Run' }}
369369
0 commit comments