diff --git a/.github/workflows/desktop-e2e.yml b/.github/workflows/desktop-e2e.yml index dbf954eb88ac..0ce88c0c516c 100644 --- a/.github/workflows/desktop-e2e.yml +++ b/.github/workflows/desktop-e2e.yml @@ -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 @@ -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