Skip to content

Commit

Permalink
CI/pr-size: Build MULTILANG variants
Browse files Browse the repository at this point in the history
  • Loading branch information
wavexx committed Aug 4, 2023
1 parent c8347b7 commit 18dc28b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pr-size.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ avr_ram()
echo "This PR will consume:" > "$MESSAGE"
for TARGET in $@
do
base_bin=$(echo ${BASE_DIR}/build_gen/*/$TARGET)
# strip the multilang prefix
variant=${TARGET%_MULTILANG}

base_bin=$(echo ${BASE_DIR}/build_gen/$variant/${variant}_lang_base)
base_flash=$(avr_flash "$base_bin")
base_ram=$(avr_ram "$base_bin")

pr_bin=$(echo ${PR_DIR}/build_gen/*/$TARGET)
pr_bin=$(echo ${PR_DIR}/build_gen/$variant/${variant}_lang_base)
pr_flash=$(avr_flash "$pr_bin")
pr_ram=$(avr_ram "$pr_bin")

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ MK3, MK3_* ]

env:
TARGETS: "MK3S-EINSy10a_ENGLISH MK3-EINSy10a_ENGLISH"
TARGETS: "MK3S_MULTILANG MK3_MULTILANG"

jobs:
build:
Expand Down

0 comments on commit 18dc28b

Please sign in to comment.