88 type : choice
99 required : true
1010 options :
11- - raspberry-pi-4
12- - banana-pi-r3
13- default : ' raspberry-pi-4'
11+ - raspberrypi-rpi64
12+ - bananapi-bpi-r3
13+ - friendlyarm-nanopi-r2s
14+ default : ' raspberrypi-rpi64'
1415 use_latest_release :
1516 description : ' Use latest release artifacts instead of workflow artifacts'
1617 type : boolean
@@ -52,12 +53,16 @@ jobs:
5253 - name : Set bootloader and target based on board
5354 run : |
5455 case "${{ inputs.board }}" in
55- raspberry-pi-4 )
56+ raspberrypi-rpi64 )
5657 echo "BOOTLOADER=rpi4_boot" >> $GITHUB_ENV
5758 echo "TARGET=aarch64" >> $GITHUB_ENV
5859 ;;
59- banana-pi-r3)
60- echo "BOOTLOADER=mt7986_sd_boot" >> $GITHUB_ENV
60+ bananapi-bpi-r3)
61+ echo "BOOTLOADER=bpi_r3_boot" >> $GITHUB_ENV
62+ echo "TARGET=aarch64" >> $GITHUB_ENV
63+ ;;
64+ friendlyarm-nanopi-r2s)
65+ echo "BOOTLOADER=nanopi_r2s_boot" >> $GITHUB_ENV
6166 echo "TARGET=aarch64" >> $GITHUB_ENV
6267 ;;
6368 *)
@@ -144,19 +149,7 @@ jobs:
144149 export BR2_EXTERNAL_INFIX_PATH=$PWD
145150 export RELEASE=""
146151 export INFIX_ID="infix"
147-
148- # Use the standardized mkimage.sh path for the selected board
149- # BOARD_SCRIPT="src/board/${{ inputs.board }}/mkimage.sh"
150- BOARD_SCRIPT="src/board/${{ inputs.board }}/mkimage.sh"
151-
152- if [ -f "$BOARD_SCRIPT" ]; then
153- echo "Using board-specific image creation script: $BOARD_SCRIPT"
154- chmod +x "$BOARD_SCRIPT"
155- "$BOARD_SCRIPT"
156- else
157- echo "Error: Board script $BOARD_SCRIPT not found!"
158- exit 1
159- fi
152+ ./utils/mkimage.sh ${{ inputs.board }}
160153
161154 - name : Verify created image
162155 run : |
@@ -183,7 +176,7 @@ jobs:
183176 with :
184177 name : sdcard-image-${{ inputs.board }}-${{ env.BOOTLOADER }}
185178 path : |
186- output/images/*-sdcard.img
179+ output/images/*-sdcard.img*
187180 retention-days : 30
188181
189182 - name : Create checksums
@@ -218,7 +211,7 @@ jobs:
218211 **Artifact Source:** ${{ inputs.use_latest_release && 'Latest Release' || 'Latest Workflow Run' }}
219212
220213 ## Created Images
221- $(find output/images/ -name "*.img" -o -name "*.qcow2" -o -name "*.raw" | xargs ls -lh 2>/dev/null | sed 's/^/- /' || echo "- No images found")
214+ $(find output/images/ -name "*.img* " -o -name "*.qcow2" -o -name "*.raw" | xargs ls -lh 2>/dev/null | sed 's/^/- /' || echo "- No images found")
222215
223216 ## Download
224217 The SD card image is available as a workflow artifact above.
0 commit comments