Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/ifx_package_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,14 @@ jobs:
run: |
# Set up basic environment for later steps
CORE_VER=$(extra/get_core_version.sh)
ALL_BOARD_DATA=$(extra/get_board_details.sh | jq -c 'sort_by(.variant)')
if [[ "${{ github.event_name }}" == "push" ]]; then
# limit direct pushes to this board family's own boards; PRs still
# validate the full board matrix before merge
ALL_BOARD_DATA=$(jq -c 'map(select(.feature_board == true))' <<< "${ALL_BOARD_DATA}")
fi
echo "CORE_HASH=$(git describe --always $HEAD_REF)" >> "$GITHUB_ENV"
echo "ALL_BOARD_DATA=$(extra/get_board_details.sh | jq -c 'sort_by(.variant)')" >> "$GITHUB_ENV"
echo "ALL_BOARD_DATA=${ALL_BOARD_DATA}" >> "$GITHUB_ENV"
echo "CORE_VER=${CORE_VER}" >> "$GITHUB_ENV"
echo "CORE_VER=${CORE_VER}" >> "$GITHUB_OUTPUT"

Expand Down
2 changes: 1 addition & 1 deletion extra/package_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ log_msg() {

# we use variants for include because we filter on file paths
# and boards for exclude because we want to remove matching lines in boards.txt
BOARD_DETAILS=$(extra/get_board_details.sh)
BOARD_DETAILS=${ALL_BOARD_DATA:-$(extra/get_board_details.sh)}
if [ $ARTIFACT == "zephyr" ] ; then
INCLUDED_VARIANTS=$(echo ${BOARD_DETAILS} | jq -cr ".[].variant")
EXCLUDED_BOARDS=""
Expand Down
Loading