Convert win64_build to rules

This commit is contained in:
Marek Roszko 2023-05-05 21:21:21 -04:00
parent 82d4bfac75
commit 512e5a30ad
1 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,6 @@ win64_build:
stage: build stage: build
tags: tags:
- kicad-windows-1809 - kicad-windows-1809
extends: .only_code
interruptible: false interruptible: false
image: registry.gitlab.com/kicad/kicad-ci/windows-build-image/win1809-msvc:latest image: registry.gitlab.com/kicad/kicad-ci/windows-build-image/win1809-msvc:latest
variables: variables:
@ -15,9 +14,10 @@ win64_build:
paths: paths:
- build\windows\vcpkg_installed - build\windows\vcpkg_installed
- .vcpkgCache - .vcpkgCache
only: rules:
- branches@kicad/code/kicad - if: $CI_PROJECT_ROOT_NAMESPACE == "kicad" && $CI_COMMIT_REF_PROTECTED == "true"
- tags@kicad/code/kicad - if: $CI_PIPELINE_SOURCE == "schedule"
when: never
script: script:
- C:\builder\build.ps1 -Env -Arch x64 - 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 - $vcpkgCache=Join-Path -Path (Get-Location) -ChildPath ".vcpkgCache";$env:VCPKG_DEFAULT_BINARY_CACHE=$vcpkgCache;New-Item -ItemType Directory -Force -Path $vcpkgCache