Skip to content
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

feat: Allow Runner Scale Sets #3347

Merged
merged 2 commits into from
Oct 27, 2023
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
6 changes: 0 additions & 6 deletions src/negative_test/github-workflow/runs-on.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,5 @@ on:
jobs:
self-hosted-custom:
runs-on:
- self-hosted
- x86
- windows
- gpu
- large
- 5
steps:
- run: echo 'Hello from self-hosted ${{ runner.os }}'
122 changes: 7 additions & 115 deletions src/schemas/json/github-workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -569,32 +569,10 @@
"runs-on": {
"$comment": "https://help.github.com/en/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idruns-on",
"description": "The type of machine to run the job on. The machine can be either a GitHub-hosted runner, or a self-hosted runner.",
"oneOf": [
"anyOf": [
{
"$comment": "https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#github-hosted-runners",
"type": "string",
"enum": [
"macos-10.15",
"macos-11",
"macos-12",
"macos-12-xl",
"macos-13",
"macos-13-xl",
"macos-latest",
"macos-latest-xl",
"self-hosted",
"ubuntu-18.04",
"ubuntu-20.04",
"ubuntu-22.04",
"ubuntu-latest",
"ubuntu-latest-4-cores",
"ubuntu-latest-8-cores",
"ubuntu-latest-16-cores",
"windows-2019",
"windows-2022",
"windows-latest",
"windows-latest-8-cores"
]
"type": "string"
},
{
"$comment": "https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#self-hosted-runners",
Expand All @@ -603,99 +581,10 @@
{
"items": [
{
"const": "self-hosted"
}
],
"minItems": 1,
"additionalItems": {
"type": "string"
}
},
{
"items": [
{
"const": "self-hosted"
},
{
"$ref": "#/definitions/machine"
}
],
"minItems": 2,
"additionalItems": {
"type": "string"
}
},
{
"items": [
{
"const": "self-hosted"
},
{
"$ref": "#/definitions/architecture"
}
],
"minItems": 2,
"additionalItems": {
"type": "string"
}
},
{
"items": [
{
"const": "self-hosted"
},
{
"$ref": "#/definitions/machine"
},
{
"$ref": "#/definitions/architecture"
}
],
"minItems": 3,
"additionalItems": {
"type": "string"
}
},
{
"items": [
{
"const": "self-hosted"
},
{
"$ref": "#/definitions/architecture"
},
{
"$ref": "#/definitions/machine"
}
],
"minItems": 3,
"additionalItems": {
"type": "string"
}
},
{
"items": [
{
"const": "linux"
}
],
"minItems": 2,
"maxItems": 2,
"additionalItems": {
"type": "string"
}
},
{
"items": [
{
"const": "windows"
"type": "string"
}
],
"minItems": 2,
"maxItems": 2,
"additionalItems": {
"type": "string"
}
"minItems": 1
}
]
},
Expand Down Expand Up @@ -723,6 +612,9 @@
},
{
"$ref": "#/definitions/stringContainingExpressionSyntax"
},
{
"$ref": "#/definitions/expressionSyntax"
}
]
},
Expand Down