Skip to content

Commit c490719

Browse files
committed
Support b2_targets input also for Windows
1 parent 65b0e3b commit c490719

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/reusable.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,11 @@ jobs:
616616
# Use Bash which is more flexible than CMD and we can reuse the logic
617617
. ci/enforce.sh
618618
echo "B2_FULL_ARGS=${B2_ARGS[@]}" >> "$GITHUB_ENV"
619-
echo "B2_TOOLSET=$B2_TOOLSET" >> "$GITHUB_ENV"
619+
echo "SELF=$SELF" >> "$GITHUB_ENV"
620+
if [[-z "$B2_TARGETS" ]]; then
621+
B2_TARGETS=libs/$SELF/test
622+
fi
623+
echo "B2_TARGETS=$B2_TARGETS" >> "$GITHUB_ENV"
620624
env:
621625
B2_TOOLSET: ${{matrix.toolset}}
622626
B2_TARGET_OS: ${{matrix.target-os}}
@@ -626,6 +630,7 @@ jobs:
626630
B2_LINK: ${{inputs.b2_link}}
627631
B2_VARIANT: ${{inputs.b2_variant}}
628632
SELF: ${{inputs.library_folder}}
633+
B2_TARGETS: ${{inputs.b2_targets}}
629634

630635
- name: Run tests
631636
if: '!matrix.coverage'

0 commit comments

Comments
 (0)