forked from fireblocks/mpc-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
39 lines (35 loc) · 896 Bytes
/
.gitlab-ci.yml
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
default:
image: docker.io/ubuntu:20.04
tags:
- dev-common-runner
before_script:
- apt update
- DEBIAN_FRONTEND=noninteractive apt install -y build-essential cmake pkg-config uuid-dev libssl-dev libsecp256k1-dev
build-release:
stage: build
script:
- mkdir build-release && cmake -S . -B build-release -DCMAKE_BUILD_TYPE=RelWithDebInfo
- cmake --build build-release -j $(nproc)
artifacts:
paths:
- build-release/
tests-release:
stage: test
needs:
- build-release
script:
- cd build-release && ctest --output-on-failure
build-debug:
stage: build
script:
- mkdir build-debug && cmake -S . -B build-debug -DCMAKE_BUILD_TYPE=Debug
- cmake --build build-debug -j $(nproc)
artifacts:
paths:
- build-debug/
tests-debug:
stage: test
needs:
- build-debug
script:
- cd build-debug && ctest --output-on-failure