Upgrade Arm Toolchain to 9-2020-q2. Handle version number in outputs..

Synced from https://github.com/lupyuen/pinetime-lab/blob/master/.github/workflows/main.yml
This commit is contained in:
Lee Lup Yuen 2020-09-27 18:38:19 +08:00 committed by GitHub
parent 641b1e41b4
commit 4c7b6330f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ jobs:
id: cache-toolchain id: cache-toolchain
uses: actions/cache@v2 uses: actions/cache@v2
env: env:
cache-name: cache-toolchain cache-name: cache-toolchain-9-2020-q2
with: with:
path: ${{ runner.temp }}/arm-none-eabi path: ${{ runner.temp }}/arm-none-eabi
key: ${{ runner.os }}-build-${{ env.cache-name }} key: ${{ runner.os }}-build-${{ env.cache-name }}
@ -47,7 +47,7 @@ jobs:
uses: fiam/arm-none-eabi-gcc@v1.0.2 uses: fiam/arm-none-eabi-gcc@v1.0.2
with: with:
# GNU Embedded Toolchain for Arm release name, in the V-YYYY-qZ format (e.g. "9-2019-q4") # GNU Embedded Toolchain for Arm release name, in the V-YYYY-qZ format (e.g. "9-2019-q4")
release: 8-2019-q3 release: 9-2020-q2
# Directory to unpack GCC to. Defaults to a temporary directory. # Directory to unpack GCC to. Defaults to a temporary directory.
directory: ${{ runner.temp }}/arm-none-eabi directory: ${{ runner.temp }}/arm-none-eabi
@ -127,7 +127,9 @@ jobs:
- name: Create firmware image - name: Create firmware image
run: | run: |
${{ runner.temp }}/mcuboot/scripts/imgtool.py create --align 4 --version 1.0.0 --header-size 32 --slot-size 475136 --pad-header build/src/pinetime-mcuboot-app.bin build/src/pinetime-mcuboot-app-img.bin # The generated firmware binary looks like "pinetime-mcuboot-app-0.8.2.bin"
ls -l build/src/pinetime-mcuboot-app*.bin
${{ runner.temp }}/mcuboot/scripts/imgtool.py create --align 4 --version 1.0.0 --header-size 32 --slot-size 475136 --pad-header build/src/pinetime-mcuboot-app*.bin build/src/pinetime-mcuboot-app-img.bin
${{ runner.temp }}/mcuboot/scripts/imgtool.py verify build/src/pinetime-mcuboot-app-img.bin ${{ runner.temp }}/mcuboot/scripts/imgtool.py verify build/src/pinetime-mcuboot-app-img.bin
- name: Create DFU package - name: Create DFU package
@ -155,7 +157,7 @@ jobs:
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: pinetime-app.out name: pinetime-app.out
path: build/src/pinetime-app.out path: build/src/pinetime-app*.out
######################################################################################### #########################################################################################
# Finish # Finish