Skip to content

Commit

Permalink
build-gg*: make retention-days 5(max), separate raucb zip
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-roos committed Dec 12, 2024
1 parent c62233c commit 0ed6cd1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build-gg-lite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ jobs:
shell: bash
run: |
cp ${{ github.workspace }}/build/tmp/deploy/images/raspberrypi-armv8/${{ matrix.image }}-raspberrypi-armv8.rootfs.wic ${{ github.workspace }}/zipfile/${{ matrix.image }}-${{ matrix.device }}.img
[[ "${{ matrix.image }}" == "aws-iot-greengrass-lite-demo-image" ]] && cp ${{ github.workspace }}/build/tmp/deploy/images/raspberrypi-armv8/aws-iot-greengrass-lite-demo-bundle-raspberrypi-armv8.raucb ${{ github.workspace }}/zipfile/${{ matrix.image }}-${{ matrix.device }}.raucb
[[ "${{ matrix.image }}" == "aws-iot-greengrass-lite-demo-image" ]] && mkdir ${{ github.workspace }}/bundle/
[[ "${{ matrix.image }}" == "aws-iot-greengrass-lite-demo-image" ]] && cp ${{ github.workspace }}/build/tmp/deploy/images/raspberrypi-armv8/aws-iot-greengrass-lite-demo-bundle-raspberrypi-armv8.raucb ${{ github.workspace }}/bundle/${{ matrix.image }}-${{ matrix.device }}.raucb
ls -la ${{ github.workspace }}/zipfile/
- name: cp image (aws-ec2) to zip dir
if: startsWith(matrix.device, 'aws-ec2')
Expand All @@ -156,13 +157,21 @@ jobs:
name: ${{ matrix.image }}_${{ matrix.device }}
path: |
${{ github.workspace }}/zipfile/*
retention-days: 1
- name: Upload sourece zipfile
retention-days: 5
- name: Upload src zipfile
if: (startsWith(matrix.device, 'raspberrypi') || startsWith(matrix.device, 'aws-ec2') ) && inputs.upload-source-zip
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.image }}_${{ matrix.device }}_downloads
path: |
${{ github.workspace }}/build/downloads/*
!${{ github.workspace }}/build/downloads/*/
retention-days: 1
retention-days: 5
- name: Upload bundle zipfile
if: ${{ startsWith(matrix.device, 'raspberrypi-64') && startsWith(matrix.image, 'aws-iot-greengrass-lite-demo-image') }}
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.image }}_${{ matrix.device }}_raucb
path: |
${{ github.workspace }}/bundle/*
retention-days: 5
4 changes: 2 additions & 2 deletions .github/workflows/build-gg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
name: ${{ matrix.image }}_${{ matrix.device }}
path: |
${{ github.workspace }}/zipfile/*
retention-days: 1
retention-days: 5
- name: Upload sourece zipfile
if: (startsWith(matrix.device, 'raspberrypi') || startsWith(matrix.device, 'aws-ec2') ) && inputs.upload-source-zip
uses: actions/upload-artifact@v4
Expand All @@ -156,4 +156,4 @@ jobs:
path: |
${{ github.workspace }}/build/downloads/*
!${{ github.workspace }}/build/downloads/*/
retention-days: 1
retention-days: 5

0 comments on commit 0ed6cd1

Please sign in to comment.