-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
31 lines (28 loc) · 823 Bytes
/
.gitlab-ci.yml
File metadata and controls
31 lines (28 loc) · 823 Bytes
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
image: ubuntu:22.04
stages: # List of stages for jobs, and their order of execution
- build
before_script:
- export TZ=Asia/Yekaterinburg
- ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
- apt-get update --yes
- apt-get install --yes g++-12 cmake nlohmann-json3-dev libopencv-dev libeigen3-dev python3.10-dev
linux-build:
stage: build
tags: [docker]
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_DEPTH: 1
script:
- mkdir build
- cd build
- echo "Configuring build..."
- cmake -DCMAKE_CXX_COMPILER=/usr/bin/g++-12 ..
- echo "Compiling the code..."
- make
- echo "Compilation successful."
- echo "Making package..."
- make package
- echo "Package ready."
artifacts:
paths:
- build/strongsort-*.deb