mirror of
https://github.com/ClaytonWWilson/miryoku_zmk.git
synced 2025-12-13 17:58:47 +00:00
Reduce firmware artifact filename length
- Uploading artifacts fails if the filename is too long - 240 characters is too long - Reduce md5sum hashes from 32 to 16 characters
This commit is contained in:
parent
09abdd2c45
commit
aa6bb9f674
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
@ -91,11 +91,12 @@ jobs:
|
||||
mv "$tmpfile" "$configfile"
|
||||
|
||||
artifact_build_name="miryoku_zmk $shield ${{ matrix.board }}"
|
||||
hash_length=16
|
||||
|
||||
if [ -n "${{ matrix.custom_config }}" -a "${{ matrix.custom_config }}" != 'default' ]
|
||||
then
|
||||
echo "${{ matrix.custom_config }}" >> "$configfile"
|
||||
artifact_build_name="$artifact_build_name config_"`echo "${{ matrix.custom_config }}" | md5sum | cut -d ' ' -f 1`
|
||||
artifact_build_name="$artifact_build_name config_"`echo "${{ matrix.custom_config }}" | md5sum | head -c "$hash_length"`
|
||||
fi
|
||||
|
||||
for option in "alphas_${{ matrix.alphas }}" "nav_${{ matrix.nav }}" "clipboard_${{ matrix.clipboard }}" "layers_${{ matrix.layers }}" "mapping_${{ matrix.mapping }}"
|
||||
@ -120,7 +121,7 @@ jobs:
|
||||
then
|
||||
kconfig_file="${GITHUB_WORKSPACE}/miryoku_zmk/config/$keyboard_split.conf"
|
||||
echo "${{ matrix.kconfig }}" >> "$kconfig_file"
|
||||
artifact_build_name="$artifact_build_name kconfig_"`echo "${{ matrix.kconfig }}" | md5sum | cut -d ' ' -f 1`
|
||||
artifact_build_name="$artifact_build_name kconfig_"`echo "${{ matrix.kconfig }}" | md5sum | head -c "$hash_length"`
|
||||
fi
|
||||
test "$MIRYOKU_DEBUG" = 'MIRYOKU_DEBUG_TRUE' && test -f "$kconfig_file" && cp "$kconfig_file" "$artifacts_dir"
|
||||
|
||||
@ -168,7 +169,7 @@ jobs:
|
||||
echo "::group::zmk"
|
||||
if [ -n "${{ matrix.branches }}" -a "${{ matrix.branches }}" != 'default' ]
|
||||
then
|
||||
artifact_build_name="$artifact_build_name branches_"`echo "${{ matrix.branches }}" | md5sum | cut -d ' ' -f 1`
|
||||
artifact_build_name="$artifact_build_name branches_"`echo "${{ matrix.branches }}" | md5sum | head -c "$hash_length"`
|
||||
zmk=`echo "${{ matrix.branches }}" | cut -d ' ' -f 1`
|
||||
merges=`echo "${{ matrix.branches }}" | cut -d ' ' -f 2- -s`
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user