4646 - name : Rename firmware
4747 run : |
4848 VM=$(cat modules/microblocks/gp/runtime/versions | grep VM | awk '{print $2}')
49- mv build/zephyr/zephyr.bin microblocks_${{ matrix.board }}_${{ matrix.version }}_${VM}.bin
49+ BIN_NAME=microblocks_${{ matrix.board }}_${{ matrix.version }}_${VM}.bin
50+ mv build/zephyr/zephyr.bin $BIN_NAME
51+ xz -z $BIN_NAME
5052
5153 - name : Pre-Release
5254 uses : softprops/action-gh-release@v2
@@ -55,16 +57,18 @@ jobs:
5557 name : Continuous Release
5658 tag_name : continuous-release
5759 body : Continuous Dev and Pilot builds of MicroBlocks
58- files : microblocks_*.bin
60+ files : microblocks_*.bin.xz
5961
6062 - name : Generate OS List
6163 run : |
6264 export VM=$(cat modules/microblocks/gp/runtime/versions | grep VM | awk '{print $2}')
63- export URL="https://github.com/beagleboard/microblocks-zephyr/releases/download/continuous-release/microblocks_beagleconnect_freedom_dev_${VM}.bin"
64- export SHA=$(sha256sum microblocks_${{ matrix.board }}_${{ matrix.version }}_${VM}.bin | cut -d " " -f 1)
65+ BIN_NAME=microblocks_${{ matrix.board }}_${{ matrix.version }}_${VM}.bin.xz
66+ export URL="https://github.com/beagleboard/microblocks-zephyr/releases/download/continuous-release/${BIN_NAME}"
67+ export SHA=$(sha256sum ${BIN_NAME} | cut -d " " -f 1)
6568 export RELEASE_DATE=$(date +"%Y-%m-%d")
6669 export DEVICE=$(echo ${{ matrix.board }} | sed "s/_/-/g")
67- jq -n '[ .name = env.OS_LIST_NAME | .description = env.OS_LIST_DESC | .icon = env.OS_LIST_ICON | .devices = [ env.DEVICE ] | .tags = [ "education" ] | .url = env.URL | .image_download_sha256 = env.SHA | .release_date = env.RELEASE_DATE ]' > os_list_${{ matrix.version }}.json
70+ EXTRACT_SIZE=$(xz --robot --list ${BIN_NAME} | awk 'END {print $5}')
71+ jq -n --argjson extract_size $EXTRACT_SIZE '[ .name = env.OS_LIST_NAME | .description = env.OS_LIST_DESC | .icon = env.OS_LIST_ICON | .devices = [ env.DEVICE ] | .tags = [ "education" ] | .url = env.URL | .image_download_sha256 = env.SHA | .release_date = env.RELEASE_DATE | .extract_size = $extract_size ]' > os_list_${{ matrix.version }}.json
6872
6973 - name : OS List Generation
7074 uses : softprops/action-gh-release@v2
0 commit comments