Skip to content

Commit e06076f

Browse files
gojimmypidanielinux
authored andcommitted
Exclude some known failures SPMATH WOLFBOOT_SMALL_STACK
1 parent ba86c25 commit e06076f

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/test-library.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
asym: [ed25519, ecc256, ecc384, ecc521, rsa2048, rsa3072, rsa4096, ed448]
3434
hash: [sha256, sha384, sha3]
3535

36+
# See https://github.com/wolfSSL/wolfBoot/issues/614 regarding exclusions:
37+
exclude:
38+
- math: "SPMATH=1 WOLFBOOT_SMALL_STACK=1"
39+
- math: "SPMATHALL=1 WOLFBOOT_SMALL_STACK=1"
40+
3641
steps:
3742
- uses: actions/checkout@v4
3843
with:
@@ -70,13 +75,18 @@ jobs:
7075
7176
# First attempt
7277
if build_once >build.out 2>build.err; then
73-
echo "Success on first attempt"
78+
echo "Success on first attempt, WOLFBOOT_HUGE_STACK not applied."
7479
exit 0
7580
fi
7681
7782
# If it failed due to the TFM huge stack guard, retry with the flag
78-
if grep -q 'If this is OK, please compile with WOLFBOOT_HUGE_STACK=1' build.err; then
79-
echo "Retrying with WOLFBOOT_HUGE_STACK=1 due to TFM stack requirement"
83+
if grep -Fq 'If this is OK, please compile with WOLFBOOT_HUGE_STACK=1' build.err; then
84+
echo "Retrying with WOLFBOOT_HUGE_STACK=1 due to stack requirement error."
85+
86+
# Always print the entire message
87+
grep -Fn 'If this is OK, please compile with WOLFBOOT_HUGE_STACK=1' build.err || true
88+
89+
# Try again with huge stack allowed
8090
build_once WOLFBOOT_HUGE_STACK=1
8191
else
8292
echo "Build failed for another reason:"

0 commit comments

Comments
 (0)