.gitlab-ci.yml 1021 Bytes
Newer Older
Florian Oetke's avatar
Florian Oetke committed
1
2
3
4
image: lowkey42/build-env:latest

stages:
  - build
Florian Oetke's avatar
Florian Oetke committed
5
6
7
8
  
variables:
  GIT_SUBMODULE_STRATEGY: recursive
  
Florian Oetke's avatar
Florian Oetke committed
9
10
build_gcc:
  stage: build
Florian Oetke's avatar
Florian Oetke committed
11
  script:
Florian Oetke's avatar
Florian Oetke committed
12
13
14
15
    - export CC=gcc
    - export CXX=g++
    - mkdir build
    - cd build
Florian Oetke's avatar
Florian Oetke committed
16
    - cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ..
Florian Oetke's avatar
Florian Oetke committed
17
18
19
20
21
22
23
24
    - cmake --build .
  artifacts:
    paths:
      - build/src/demo/demo
      - build/src/mirrage/*/*.a

build_clang:
  stage: build
Florian Oetke's avatar
Florian Oetke committed
25
  script:
Florian Oetke's avatar
Florian Oetke committed
26
27
28
29
    - export CC=clang
    - export CXX=clang++
    - mkdir build
    - cd build
Florian Oetke's avatar
Florian Oetke committed
30
    - cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ..
Florian Oetke's avatar
Florian Oetke committed
31
32
    - cmake --build .
  artifacts:
Florian Oetke's avatar
Florian Oetke committed
33
34
35
36
37
38
39
40
41
42
43
    paths:
      - build/src/demo/demo
      - build/src/mirrage/*/*.a

build_scanbuild:
  stage: build
  script: 
    - export CC=clang
    - export CXX=clang++
    - mkdir build
    - cd build
Florian Oetke's avatar
Florian Oetke committed
44
    - scan-build --use-c++=clang++ cmake -DMIRRAGE_FORCE_LIBCPP=ON -G "Unix Makefiles" ..
Florian Oetke's avatar
Florian Oetke committed
45
    - scan-build --use-c++=clang++ -enable-checker deadcode.DeadStores -enable-checker security.insecureAPI.UncheckedReturn --status-bugs -v cmake --build .
Florian Oetke's avatar
Florian Oetke committed
46
47