Skip to content

Commit

Permalink
fallback on all
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Nov 27, 2023
1 parent 900ed2a commit f575dcf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/desktop-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ jobs:
inputs=${{ toJSON(github.event.inputs.oses) }}
echo "FIXME: test ALL THE INPUTS: $inputs"
#selected=$(jq -nc --argjson inputs "$inputs" --argjson keys "$all" '[ $keys[] | select(($inputs[.] == true) or ($inputs[.] | not)) ]'
selected=$(jq -cn --argjson inputs "$inputs" --argjson all "$all" '$all - ($all - $inputs)')
[[ "$selected" == "[]" ]] && selected="$all"
if [[ -z "$selected" || "$selected" == "null" || "$selected" == "[]" ]]; then
selected="$all"
else
selected=$(jq -cn --argjson inputs "$inputs" --argjson all "$all" '$all - ($all - $inputs)')
fi
echo "FIXME: test SELECTED targets: $selected"
echo "linux_matrix=$selected" >> $GITHUB_ENV
- name: Generate matrix for Windows builds
Expand Down

0 comments on commit f575dcf

Please sign in to comment.