🔨 Fix updated build script (#26423)

Followup to #26265

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
Keith Bennett 2023-11-13 23:52:22 -08:00 committed by GitHub
parent 10e06e1970
commit 613b4105a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 4 deletions

View file

@ -118,6 +118,7 @@ jobs:
# STM32H7 # STM32H7
- BTT_SKR_SE_BX - BTT_SKR_SE_BX
- STM32H743VI_btt
# STM32F1 (Maple) # STM32F1 (Maple)
- jgaurora_a5s_a1_maple - jgaurora_a5s_a1_maple

View file

@ -31,11 +31,11 @@ if pioutil.is_pio_build():
} }
platform_name = framewords[platform.__class__.__name__] platform_name = framewords[platform.__class__.__name__]
else: else:
uri = PackageSpec(platform_packages[0]).uri spec = PackageSpec(platform_packages[0])
if '@' in uri: if spec.uri and '@' in spec.uri:
platform_name = re.sub(r'@.+', '' , uri) platform_name = re.sub(r'@.+', '', spec.uri)
else: else:
platform_name = PackageSpec(platform_packages[0]).name platform_name = spec.name
FRAMEWORK_DIR = Path(platform.get_package_dir(platform_name)) FRAMEWORK_DIR = Path(platform.get_package_dir(platform_name))
assert FRAMEWORK_DIR.is_dir() assert FRAMEWORK_DIR.is_dir()

17
buildroot/tests/STM32H743VI_btt Executable file
View file

@ -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