.gitlab-ci.yml 1.01 KB
Newer Older
Florian Oetke's avatar
Florian Oetke committed
1
2
3
4
5
6
7
image: lowkey42/build-env:latest

stages:
  - build

build_gcc:
  stage: build
Florian Oetke's avatar
Florian Oetke committed
8
  script:
Florian Oetke's avatar
Florian Oetke committed
9
10
11
12
    - export CC=gcc
    - export CXX=g++
    - mkdir build
    - cd build
Florian Oetke's avatar
Florian Oetke committed
13
    - cmake -DCMAKE_BUILD_TYPE=Release ..
Florian Oetke's avatar
Florian Oetke committed
14
15
16
17
18
19
20
21
    - cmake --build .
  artifacts:
    paths:
      - build/src/demo/demo
      - build/src/mirrage/*/*.a

build_clang:
  stage: build
Florian Oetke's avatar
Florian Oetke committed
22
  script:
Florian Oetke's avatar
Florian Oetke committed
23
24
25
26
    - export CC=clang
    - export CXX=clang++
    - mkdir build
    - cd build
Florian Oetke's avatar
Florian Oetke committed
27
    - cmake -DCMAKE_BUILD_TYPE=Release ..
Florian Oetke's avatar
Florian Oetke committed
28
29
    - cmake --build .
  artifacts:
Florian Oetke's avatar
Florian Oetke committed
30
31
32
33
34
35
36
37
38
39
40
    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
41
    - scan-build --use-c++=clang++ cmake -DMIRRAGE_FORCE_LIBCPP=ON -G "Unix Makefiles" ..
Florian Oetke's avatar
Florian Oetke committed
42
    - 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
43
44
45
46
47
48
  artifacts:
    paths:
      - build/src/demo/demo
      - build/src/mirrage/*/*.a