-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
21 lines (20 loc) · 904 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
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
build_test:
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:
- 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