[go: up one dir, main page]

File: .gitlab-ci.yml

package info (click to toggle)
libformfactor 0.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,288 kB
  • sloc: cpp: 17,289; python: 382; makefile: 15
file content (54 lines) | stat: -rw-r--r-- 1,269 bytes parent folder | download
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
stages:
  - build

mac_x64:
  tags:
  - mac_x64
  stage: build
  script: &macbuild
    - OPTDIR=/Users/Shared/Software
    - mkdir build
    - cd build
    - cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$OPTDIR" -DCMAKE_PREFIX_PATH="$OPTDIR" -S ..
    - make
    - ctest --output-on-failure
    - if [ "$CI_COMMIT_REF_NAME" == "main" ]; then make install; fi

mac_arm:
  tags:
  - mac_arm
  stage: build
  script: *macbuild

windows:
  tags:
  - Windows
  stage: build
  script:
    - cmake -G "Visual Studio 17 2022" -A x64 -T host=x64 -DCMAKE_INSTALL_PREFIX=C:/opt/x64 -S . -B build
    - cd build
    - cmake --build . --config Release
    - ctest -C Release --output-on-failure
    - if ("$CI_COMMIT_REF_NAME" -eq "main") { cmake --install . ; }

native_Debian_clang:
  tags: &native
  - Debian
  before_script:
    - export CC=gcc; export CXX=g++
    - cmake --version
    - clang --version
  stage: build
  script: &native_scr
    - pwd && ls
    - mkdir build
    - cd build
    - cmake -DWERROR=ON -DPEDANTIC=ON -DPORTABLE=ON ..
    - make
    - ctest --output-on-failure
    - if [ "$CI_COMMIT_REF_NAME" == "main" ]; then make install; fi
    - cpack --config CPackConfig.cmake -G TGZ
  artifacts:
    paths:
    - build/*gz
    expire_in: 10 days