Add Metal build bot
Bug: skia:6896 Change-Id: If2ed083703e6300b9d2a86cfb298011bbf54e018 Reviewed-on: https://skia-review.googlesource.com/28180 Reviewed-by: Eric Boren <borenet@google.com>
This commit is contained in:
parent
b17e63938f
commit
293d9bd3c2
@ -55,6 +55,7 @@
|
||||
"Build-Mac-Clang-x64-Release-iOS",
|
||||
"Build-Mac-Clang-x86_64-Debug",
|
||||
"Build-Mac-Clang-x86_64-Debug-CommandBuffer",
|
||||
"Build-Mac-Clang-x86_64-Debug-Metal",
|
||||
"Build-Mac-Clang-x86_64-Release",
|
||||
"Build-Mac-Clang-x86_64-Release-CommandBuffer",
|
||||
"Build-Win-Clang-arm64-Release-Android",
|
||||
|
@ -0,0 +1,54 @@
|
||||
[
|
||||
{
|
||||
"cmd": [
|
||||
"python",
|
||||
"-u",
|
||||
"[CUSTOM_/_B_WORK]/skia/bin/fetch-gn"
|
||||
],
|
||||
"cwd": "[CUSTOM_/_B_WORK]/skia",
|
||||
"env": {
|
||||
"BUILDTYPE": "Debug",
|
||||
"CHROME_HEADLESS": "1",
|
||||
"PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
|
||||
"SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x86_64-Debug-Metal"
|
||||
},
|
||||
"infra_step": true,
|
||||
"name": "fetch-gn"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"[CUSTOM_/_B_WORK]/skia/bin/gn",
|
||||
"gen",
|
||||
"[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x86_64-Debug-Metal/Debug",
|
||||
"--args=cc=\"clang\" cxx=\"clang++\" extra_cflags=[\"-O1\"] skia_use_metal=true target_cpu=\"x86_64\""
|
||||
],
|
||||
"cwd": "[CUSTOM_/_B_WORK]/skia",
|
||||
"env": {
|
||||
"BUILDTYPE": "Debug",
|
||||
"CHROME_HEADLESS": "1",
|
||||
"PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
|
||||
"SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x86_64-Debug-Metal"
|
||||
},
|
||||
"name": "gn gen"
|
||||
},
|
||||
{
|
||||
"cmd": [
|
||||
"ninja",
|
||||
"-C",
|
||||
"[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x86_64-Debug-Metal/Debug"
|
||||
],
|
||||
"cwd": "[CUSTOM_/_B_WORK]/skia",
|
||||
"env": {
|
||||
"BUILDTYPE": "Debug",
|
||||
"CHROME_HEADLESS": "1",
|
||||
"PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]",
|
||||
"SKIA_OUT": "[CUSTOM_/_B_WORK]/skia/out/Build-Mac-Clang-x86_64-Debug-Metal"
|
||||
},
|
||||
"name": "ninja"
|
||||
},
|
||||
{
|
||||
"name": "$result",
|
||||
"recipe_result": null,
|
||||
"status_code": 0
|
||||
}
|
||||
]
|
@ -57,6 +57,7 @@ TEST_BUILDERS = [
|
||||
'Build-Debian9-Clang-arm-Release-Android_API26',
|
||||
'Build-Mac-Clang-arm64-Debug-Android_Vulkan',
|
||||
'Build-Mac-Clang-x86_64-Debug-CommandBuffer',
|
||||
'Build-Mac-Clang-x86_64-Debug-Metal',
|
||||
'Build-Ubuntu-Clang-x86_64-Release-Mini',
|
||||
'Build-Ubuntu-Clang-x86_64-Release-Shared',
|
||||
'Build-Ubuntu-Clang-x86_64-Release-Vulkan',
|
||||
|
@ -105,6 +105,8 @@ class GNFlavorUtils(default_flavor.DefaultFlavorUtils):
|
||||
args['skia_vulkan_sdk'] = '"%s"' % linux_vulkan_sdk
|
||||
if 'Win' in os:
|
||||
args['skia_vulkan_sdk'] = '"%s"' % win_vulkan_sdk
|
||||
if 'Metal' in extra_config:
|
||||
args['skia_use_metal'] = 'true'
|
||||
if 'CheckGeneratedFiles' in extra_config:
|
||||
args['skia_compile_processors'] = 'true'
|
||||
|
||||
|
@ -336,6 +336,12 @@
|
||||
"Build-Mac-Clang-x86_64-Debug-CommandBuffer"
|
||||
]
|
||||
},
|
||||
"Build-Mac-Clang-x86_64-Debug-Metal": {
|
||||
"priority": 0.8,
|
||||
"tasks": [
|
||||
"Build-Mac-Clang-x86_64-Debug-Metal"
|
||||
]
|
||||
},
|
||||
"Build-Mac-Clang-x86_64-Release": {
|
||||
"priority": 0.8,
|
||||
"tasks": [
|
||||
@ -3875,6 +3881,28 @@
|
||||
"isolate": "compile_skia.isolate",
|
||||
"priority": 0.8
|
||||
},
|
||||
"Build-Mac-Clang-x86_64-Debug-Metal": {
|
||||
"dimensions": [
|
||||
"gpu:none",
|
||||
"os:Mac-10.12",
|
||||
"pool:Skia"
|
||||
],
|
||||
"extra_args": [
|
||||
"--workdir",
|
||||
"../../..",
|
||||
"compile",
|
||||
"repository=<(REPO)",
|
||||
"buildername=Build-Mac-Clang-x86_64-Debug-Metal",
|
||||
"swarm_out_dir=${ISOLATED_OUTDIR}",
|
||||
"revision=<(REVISION)",
|
||||
"patch_repo=<(PATCH_REPO)",
|
||||
"patch_storage=<(PATCH_STORAGE)",
|
||||
"patch_issue=<(ISSUE)",
|
||||
"patch_set=<(PATCHSET)"
|
||||
],
|
||||
"isolate": "compile_skia.isolate",
|
||||
"priority": 0.8
|
||||
},
|
||||
"Build-Mac-Clang-x86_64-Release": {
|
||||
"dimensions": [
|
||||
"gpu:none",
|
||||
|
Loading…
Reference in New Issue
Block a user