Add multiple shields

- outboards are currently supported on the first shield only
This commit is contained in:
Manna Harbour
2022-10-07 21:40:51 +11:00
parent 3684f92b03
commit 9d6c239c10
3 changed files with 17 additions and 4 deletions

View File

@@ -70,9 +70,9 @@ jobs:
if [ -n "${{ matrix.shield }}" -a "${{ matrix.shield }}" != "default" ]
then
SHIELD_ARG="-DSHIELD=${{ matrix.shield }}"
keyboard=${{ matrix.shield }}
shield=${{ matrix.shield }}
SHIELD_ARG="-DSHIELD=\"${{ matrix.shield }}\""
shield=`echo ${{ matrix.shield }} | cut -d ' ' -f 1`
keyboard="$shield"
else
keyboard=${{ matrix.board }}
shield=""
@@ -90,7 +90,7 @@ jobs:
cat "$configfile" >> "$tmpfile"
mv "$tmpfile" "$configfile"
artifact_build_name="miryoku_zmk $shield ${{ matrix.board }}"
artifact_build_name="miryoku_zmk ${{ matrix.shield }} ${{ matrix.board }}"
hash_length=16
if [ -n "${{ matrix.custom_config }}" -a "${{ matrix.custom_config }}" != 'default' ]