From f924a1605569d81d38026fdf434e9af59543f56c Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Wed, 12 Sep 2018 16:54:23 -0400 Subject: [PATCH] ci: don't run gn debug build on older branches (#14584) * ci: don't run gn debug build on older branches Older branches that build using gyp do not run both a debug and testing build. * Actually skip the build if debug --- appveyor.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index d0281e481f6a..da63f4018483 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,8 +5,10 @@ build_script: echo "Build worker image $env:APPVEYOR_BUILD_WORKER_IMAGE" &"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" - - if(($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME -split "/")[0] -eq ($env:APPVEYOR_REPO_NAME -split "/")[0]) { + + if($env:SKIP_GYP_BUILD -eq "true") { + Write-warning "Skipping debug build for older branch"; Exit-AppveyorBuild + } elseif(($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_NAME -split "/")[0] -eq ($env:APPVEYOR_REPO_NAME -split "/")[0]) { Write-warning "Skipping PR build for branch"; Exit-AppveyorBuild } else { Add-Path "$env:ProgramFiles (x86)\Windows Kits\10\Debuggers\x64"