Skip to content

Disentangle matrix into 3 types #128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
121 changes: 70 additions & 51 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -801,69 +801,86 @@
},
{
"type": "object",
"description": "Configuration for multi-dimension Build Matrix",
"description": "Configuration for single-dimension Build Matrix",
"properties": {
"setup": {
"oneOf": [
{
"type": "array",
"description": "List of elements for single-dimension Build Matrix",
"items": { "$ref": "#/definitions/matrixElement" },
"examples": [
["linux", "freebsd"]
]
},
{
"type": "object",
"description": "Mapping of Build Matrix dimension names to their lists of elements",
"propertyNames": {
"type": "array",
"description": "List of elements for single-dimension Build Matrix",
"items": { "$ref": "#/definitions/matrixElement" },
"examples": [
["linux", "freebsd"]
]
},
"adjustments": {
"type": "array",
"description": "List of single-dimension Build Matrix adjustments",
"items": {
"type": "object",
"description": "An adjustment to a single-dimension Build Matrix",
"properties": {
"with": {
"type": "string",
"description": "Build Matrix dimension name",
"pattern": "^[a-zA-Z0-9_]+$"
"description": "An existing or new element for single-dimension Build Matrix",
},
"additionalProperties": {
"type": "array",
"description": "List of elements for this Build Matrix dimension",
"items": { "$ref": "#/definitions/matrixElement" }
"skip": {
"$ref": "#/definitions/skip"
},
"examples": [
{
"os": ["linux", "freebsd"],
"arch": ["arm64", "riscv"]
}
]
"soft_fail": {
"$ref": "#/definitions/softFail"
}
},
"required": ["with"],
"additionalProperties": false
}
}
},
"required": ["setup"],
"additionalProperties": false
},
{
"type": "object",
"description": "Configuration for multi-dimension Build Matrix",
"properties": {
"setup": {
"type": "object",
"description": "Mapping of Build Matrix dimension names to their lists of elements",
"propertyNames": {
"type": "string",
"description": "Build Matrix dimension name",
"pattern": "^[a-zA-Z0-9_]+$"
},
"additionalProperties": {
"type": "array",
"description": "List of elements for this Build Matrix dimension",
"items": { "$ref": "#/definitions/matrixElement" }
},
"examples": [
{
"os": ["linux", "freebsd"],
"arch": ["arm64", "riscv"]
}
]
},
"adjustments": {
"type": "array",
"description": "List of Build Matrix adjustments",
"description": "List of multi-dimension Build Matrix adjustments",
"items": {
"type": "object",
"description": "An adjustment to a Build Matrix",
"description": "An adjustment to a multi-dimension Build Matrix",
"properties": {
"with": {
"oneOf": [
{
"type": "array",
"description": "List of existing or new elements for single-dimension Build Matrix",
"items": { "$ref": "#/definitions/matrixElement" }
},
{
"type": "object",
"description": "Specification of a new or existing Build Matrix combination",
"propertyNames": {
"type": "string",
"description": "Build Matrix dimension name"
},
"additionalProperties": {
"type": "string",
"description": "Build Matrix dimension element"
},
"examples": [
{ "os": "linux", "arch": "arm64" }
]
}
"type": "object",
"description": "Specification of a new or existing Build Matrix combination",
"propertyNames": {
"type": "string",
"description": "Build Matrix dimension name"
},
"additionalProperties": {
"$ref": "#/definitions/matrixElement",
"description": "Build Matrix dimension element"
},
"examples": [
{ "os": "linux", "arch": "arm64" }
]
},
"skip": {
Expand All @@ -873,11 +890,13 @@
"$ref": "#/definitions/softFail"
}
},
"required": ["with"]
"required": ["with"],
"additionalProperties": false
}
}
},
"required": ["setup"]
"required": ["setup"],
"additionalProperties": false
}
]
},
Expand Down