Skip to content

Commit

Permalink
build: chew up the board name for finding the key
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiobaltieri committed Sep 25, 2024
1 parent 83d4878 commit 3a1ce8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,13 @@ jobs:
app-path: firmware
toolchains: arm-zephyr-eabi

- name: Set the normalized board name
run: |
echo BOARD=$( echo ${{ matrix.board }} | sed 's/@.*$//' | tr '[:lower:]' '[:upper:]' ) >> $GITHUB_ENV
- name: Save the MCUboot key
env:
MCUBOOT_SIGNATURE_KEY: ${{ secrets[format('MCUBOOT_SIGNATURE_KEY_{0}', matrix.board)] }}
MCUBOOT_SIGNATURE_KEY: ${{ secrets[format('MCUBOOT_SIGNATURE_KEY_{0}', env.BOARD)] }}
if: ${{ env.MCUBOOT_SIGNATURE_KEY != '' }}
run: |
cat > mcuboot-signature-key.pem <<< $MCUBOOT_SIGNATURE_KEY
Expand Down

0 comments on commit 3a1ce8b

Please sign in to comment.