From 512e5a30ad6f97cc6e3505217b4b4f01fa7f878f Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Fri, 5 May 2023 21:21:21 -0400 Subject: [PATCH] Convert win64_build to rules --- .gitlab/Windows-CI.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab/Windows-CI.yml b/.gitlab/Windows-CI.yml index 38dca0e669..668d708c22 100644 --- a/.gitlab/Windows-CI.yml +++ b/.gitlab/Windows-CI.yml @@ -5,7 +5,6 @@ win64_build: stage: build tags: - kicad-windows-1809 - extends: .only_code interruptible: false image: registry.gitlab.com/kicad/kicad-ci/windows-build-image/win1809-msvc:latest variables: @@ -15,9 +14,10 @@ win64_build: paths: - build\windows\vcpkg_installed - .vcpkgCache - only: - - branches@kicad/code/kicad - - tags@kicad/code/kicad + rules: + - if: $CI_PROJECT_ROOT_NAMESPACE == "kicad" && $CI_COMMIT_REF_PROTECTED == "true" + - if: $CI_PIPELINE_SOURCE == "schedule" + when: never script: - C:\builder\build.ps1 -Env -Arch x64 - $vcpkgCache=Join-Path -Path (Get-Location) -ChildPath ".vcpkgCache";$env:VCPKG_DEFAULT_BINARY_CACHE=$vcpkgCache;New-Item -ItemType Directory -Force -Path $vcpkgCache