-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
25 lines (24 loc) · 964 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
precommit:
image: python:3.10.2-slim-bullseye
before_script:
- apt update && apt install -y --no-install-recommends git
- pip install pre-commit
script:
- pre-commit run --all-files
unittest:
tags:
- cuda
image: nvidia/cuda:12.5.1-devel-ubuntu22.04
before_script:
- apt update && apt install -y --no-install-recommends build-essential wget lsb-release software-properties-common git libnvidia-ml-dev
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
- apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main"
- apt update && apt install -y --no-install-recommends cmake
script:
- nvidia-smi
- git submodule update --recursive --init
- sed -i 's/BUILD_TEST OFF/BUILD_TEST ON/g' CMakeLists.txt
- mkdir -p build && cd build
- cmake ..
- make -j8
- ./main.test ci_test