Skip to content

Commit

Permalink
iojafds. limited number of checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Nov 27, 2023
1 parent 275be93 commit 4aad854
Showing 1 changed file with 8 additions and 38 deletions.
46 changes: 8 additions & 38 deletions .github/workflows/desktop-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,10 @@ on:
push:
workflow_dispatch:
inputs:
macos12:
type: boolean
default: true
macos13:
type: boolean
default: true
macos14:
type: boolean
default: true
debian11:
type: boolean
default: true
debian12:
type: boolean
default: true
ubuntu2004:
type: boolean
default: true
ubuntu2204:
type: boolean
default: true
fedora38:
type: boolean
default: true
fedora37:
type: boolean
default: true
fedora36:
type: boolean
default: true
windows10:
type: boolean
default: true
windows11:
type: boolean
default: true
oses:
default: ''
required: false
type: string
jobs:
prepare-matrices:
runs-on: ubuntu-latest
Expand All @@ -49,9 +17,11 @@ jobs:
shell: bash
run: |
all='["debian11","debian12","ubuntu2004","ubuntu2204","ubuntu2304","fedora38","fedora37","fedora36"]'
inputs=${{ toJSON(github.event.inputs) }}
inputs=${{ toJSON(github.event.inputs.oses) }}
echo "FIXME: test ALL THE INPUTS: $inputs"
selected=$(jq -nc --argjson inputs "$inputs" --argjson key "$keys" '[ $key[] | select(($inputs[.] == true) or ($inputs[.] | not)) ]'
#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"
echo "FIXME: test SELECTED targets: $selected"
echo "linux_matrix=$selected" >> $GITHUB_ENV
- name: Generate matrix for Windows builds
Expand Down

0 comments on commit 4aad854

Please sign in to comment.