Skip to content

Commit

Permalink
🔨 Fix updated build script (MarlinFirmware#26423)
Browse files Browse the repository at this point in the history
Followup to MarlinFirmware#26265

Co-authored-by: Scott Lahteine <[email protected]>
  • Loading branch information
2 people authored and eoyilmaz committed Nov 21, 2023
1 parent 97dadc1 commit 012c159
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ jobs:

# STM32H7
- BTT_SKR_SE_BX
- STM32H743VI_btt

# STM32F1 (Maple)
- jgaurora_a5s_a1_maple
Expand Down
8 changes: 4 additions & 4 deletions buildroot/share/PlatformIO/scripts/generic_create_variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
}
platform_name = framewords[platform.__class__.__name__]
else:
uri = PackageSpec(platform_packages[0]).uri
if '@' in uri:
platform_name = re.sub(r'@.+', '' , uri)
spec = PackageSpec(platform_packages[0])
if spec.uri and '@' in spec.uri:
platform_name = re.sub(r'@.+', '', spec.uri)
else:
platform_name = PackageSpec(platform_packages[0]).name
platform_name = spec.name

FRAMEWORK_DIR = Path(platform.get_package_dir(platform_name))
assert FRAMEWORK_DIR.is_dir()
Expand Down
17 changes: 17 additions & 0 deletions buildroot/tests/STM32H743VI_btt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
#
# Build tests for STM32H743VI_btt
# Ender-5 Plus with SKR V3.0 (STM32H7)
#

# exit on first failure
set -e

#
# Build with the default configurations
#
use_example_configs "Creality/Ender-5 Plus/BigTreeTech SKR 3"
exec_test $1 $2 "Creality Ender-5 Plus with BigTreeTech SKR 3" "$3"

# clean up
restore_configs

0 comments on commit 012c159

Please sign in to comment.