2020-12-21 04:17:17 +00:00
|
|
|
|
##########################################################################
|
2020-12-21 04:18:07 +00:00
|
|
|
|
# Build KiCad on Windows and save the results
|
2020-12-21 04:17:17 +00:00
|
|
|
|
##########################################################################
|
2021-04-09 14:53:52 +00:00
|
|
|
|
win64_build:
|
2020-12-21 04:17:17 +00:00
|
|
|
|
stage: build
|
2021-04-09 14:53:52 +00:00
|
|
|
|
tags:
|
2020-12-21 04:17:17 +00:00
|
|
|
|
- kicad-windows-1809
|
|
|
|
|
extends: .only_code
|
|
|
|
|
interruptible: false
|
2022-07-17 18:11:43 +00:00
|
|
|
|
image: registry.gitlab.com/kicad/kicad-ci/windows-build-image/win1809-msvc:latest
|
|
|
|
|
variables:
|
|
|
|
|
VCPKG_BINARY_SOURCES: 'nuget,kicad,readwrite'
|
|
|
|
|
cache:
|
|
|
|
|
key: win64-vcpkg-"$CI_COMMIT_REF_SLUG"
|
|
|
|
|
paths:
|
|
|
|
|
- build\windows\vcpkg_installed
|
|
|
|
|
- .vcpkgCache
|
2021-01-06 16:22:00 +00:00
|
|
|
|
only:
|
|
|
|
|
- branches@kicad/code/kicad
|
2021-01-09 19:32:07 +00:00
|
|
|
|
- tags@kicad/code/kicad
|
2020-12-21 04:17:17 +00:00
|
|
|
|
script:
|
2022-07-17 18:11:43 +00:00
|
|
|
|
- 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
|
|
|
|
|
- nuget.exe sources add -Name kicad -Source "https://nuget.kicad.org:443/v3/index.json"
|
2022-07-17 18:11:55 +00:00
|
|
|
|
- nuget.exe setapikey $env:KICAD_NUGET_KEY -Source "https://nuget.kicad.org:443/v3/index.json"
|
2020-12-21 04:17:17 +00:00
|
|
|
|
- mkdir -p build/windows -Force
|
|
|
|
|
- cd build/windows
|
|
|
|
|
- cmake `
|
|
|
|
|
-G "Ninja" `
|
2022-07-17 18:11:43 +00:00
|
|
|
|
-DCMAKE_TOOLCHAIN_FILE=C:\builder\vcpkg\scripts\buildsystems\vcpkg.cmake `
|
2020-12-21 04:17:17 +00:00
|
|
|
|
-DCMAKE_BUILD_TYPE=Debug `
|
|
|
|
|
-DKICAD_SCRIPTING_WXPYTHON=OFF `
|
|
|
|
|
-DKICAD_USE_OCC=ON `
|
|
|
|
|
-DKICAD_SPICE=ON `
|
2021-06-21 07:51:35 +00:00
|
|
|
|
-DKICAD_BUILD_PNS_DEBUG_TOOL=ON `
|
2020-12-21 04:17:17 +00:00
|
|
|
|
../../
|
|
|
|
|
- cmake --build . 2>&1 | tee compilation_log.txt
|
|
|
|
|
- cd ../../
|
|
|
|
|
artifacts:
|
|
|
|
|
# Only save the artifacts that are needed for running the tests in the next stage
|
|
|
|
|
# and the compilation log. The entire build directory is too large to save as an
|
|
|
|
|
# artifact.
|
|
|
|
|
expire_in: 2 hrs
|
|
|
|
|
when: always
|
|
|
|
|
paths:
|
2020-12-30 02:29:41 +00:00
|
|
|
|
- build/windows/compilation_log.txt
|