Skip to content

Commit 012c159

Browse files
thisiskeithbthinkyhead
authored andcommitted
🔨 Fix updated build script (MarlinFirmware#26423)
Followup to MarlinFirmware#26265 Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
1 parent 97dadc1 commit 012c159

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

.github/workflows/test-builds.yml

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ jobs:
118118

119119
# STM32H7
120120
- BTT_SKR_SE_BX
121+
- STM32H743VI_btt
121122

122123
# STM32F1 (Maple)
123124
- jgaurora_a5s_a1_maple

buildroot/share/PlatformIO/scripts/generic_create_variant.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
}
3232
platform_name = framewords[platform.__class__.__name__]
3333
else:
34-
uri = PackageSpec(platform_packages[0]).uri
35-
if '@' in uri:
36-
platform_name = re.sub(r'@.+', '' , uri)
34+
spec = PackageSpec(platform_packages[0])
35+
if spec.uri and '@' in spec.uri:
36+
platform_name = re.sub(r'@.+', '', spec.uri)
3737
else:
38-
platform_name = PackageSpec(platform_packages[0]).name
38+
platform_name = spec.name
3939

4040
FRAMEWORK_DIR = Path(platform.get_package_dir(platform_name))
4141
assert FRAMEWORK_DIR.is_dir()

buildroot/tests/STM32H743VI_btt

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Build tests for STM32H743VI_btt
4+
# Ender-5 Plus with SKR V3.0 (STM32H7)
5+
#
6+
7+
# exit on first failure
8+
set -e
9+
10+
#
11+
# Build with the default configurations
12+
#
13+
use_example_configs "Creality/Ender-5 Plus/BigTreeTech SKR 3"
14+
exec_test $1 $2 "Creality Ender-5 Plus with BigTreeTech SKR 3" "$3"
15+
16+
# clean up
17+
restore_configs

0 commit comments

Comments
 (0)