.gitlab-ci.yml 867 Bytes
Newer Older
Markus Frosch's avatar
Markus Frosch committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
stages:
  - build

variables:
  #BITS: 32 or 64
  CMAKE_BUILD_TYPE: RelWithDebInfo
  CMAKE_GENERATOR: "Visual Studio 15 2017 Win${BITS}"
  BOOST_ROOT: 'C:\local\boost_1_69_0-Win${BITS}'
  BOOST_LIBRARYDIR: 'C:\local\boost_1_69_0-Win${BITS}\lib${BITS}-msvc-14.1'
  BISON_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_bison.exe'
  FLEX_BINARY: 'C:\ProgramData\chocolatey\lib\winflexbison3\tools\win_flex.exe'
  OPENSSL_ROOT_DIR: 'C:\local\OpenSSL_1_1_1b-Win${BITS}'

.build: &build
  stage: build
  tags:
    - win
  before_script:
    - Get-Item env:BOOST_LIBRARYDIR
  script:
    - icinga-build-package
  cache:
    key: "${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
    paths:
      - Build/
  # artifacts:
  #   paths:
  #     - build/*
  #   expire_in: 1 week

Win32:
  <<: *build
  variables:
    BITS: 32

Win64:
  <<: *build
  variables:
    BITS: 64