Skip to content

Commit 92d33d6

Browse files
committed
CI: reusable_test-image: extract .gz image if needed
Some images are compressed with .gz format, extract them to correctly use them. Signed-off-by: Christian Marangi <[email protected]>
1 parent f936dfa commit 92d33d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/reusable_test-image.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ jobs:
5050
uses: actions/download-artifact@v4
5151
with:
5252
name: ${{ inputs.target }}-${{ inputs.subtarget }}${{ inputs.testing == true && '-testing' || '' }}-images
53+
54+
- name: Extract image if needed
55+
run: |
56+
# gunzip return 2 for warning hence we need to reset
57+
if [ -f "${{ inputs.image }}.gz" ]; then
58+
gunzip -q ${{ inputs.image }}.gz || true
59+
fi
5360
5461
- name: Run test with QEMU
5562
if: inputs.use_qemu == true

0 commit comments

Comments
 (0)