Skip to content

Commit 69850df

Browse files
committed
CI: reusable_build: add support for uploading compiled images
Add support for uploading compiled images if build_full is triggered. This is in preparation for testing the images in QEMU if supported. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
1 parent b54234c commit 69850df

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/reusable_build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ on:
5959
type: boolean
6060
upload_external_toolchain:
6161
type: boolean
62+
upload_images:
63+
type: boolean
6264
use_ccache_cache:
6365
type: boolean
6466
default: true
@@ -739,3 +741,12 @@ jobs:
739741
name: ${{ inputs.target }}-${{ inputs.subtarget }}-external-toolchain
740742
path: openwrt/bin/targets/${{ inputs.target }}/${{ inputs.subtarget }}/${{ steps.get-toolchain-name.outputs.toolchain-name }}
741743
retention-days: 1
744+
745+
- name: Upload compiled images
746+
if: inputs.build_full == true && inputs.upload_images == true
747+
uses: actions/upload-artifact@v4
748+
with:
749+
name: ${{ inputs.target }}-${{ inputs.subtarget }}${{ inputs.testing == true && '-testing' || '' }}-images
750+
path: |
751+
openwrt/bin/targets/${{ inputs.target }}/${{ inputs.subtarget }}/openwrt-${{ inputs.target }}-${{ inputs.subtarget }}-*
752+
retention-days: 1

0 commit comments

Comments
 (0)