1
0
Fork 0
Univerxel/.gitlab-ci.yml

47 lines
1.2 KiB
YAML

image: gcc
build:
stage: build
before_script:
- apt-get update
- apt-get install -y --no-install-recommends cmake libssl-dev libvulkan-dev xorg-dev
script:
- mkdir build # compile
- cd build
- cmake ..
- make -j2 univerxel univerxel-client univerxel-server
- mkdir -p ../out/full ../out/client ../out/server/content # package artifacts
- cp -r univerxel content ../out/full
- cp -r univerxel-client content ../out/client
- rm ../out/client/content/cert.pem ../out/client/content/key.pem ../out/client/content/zstd.dict
- cp univerxel-server ../out/server
- cp content/cert.pem content/key.pem content/zstd.dict ../out/server/content
artifacts:
paths:
- out/full
- out/client
- out/server
expire_in: 1 week
# cache:
# paths:
# - "*.o"
pages:
stage: deploy
before_script:
- apt-get update
- apt-get install -y --no-install-recommends cmake doxygen graphviz python3-sphinx python3-pip
- pip3 install sphinx_rtd_theme breathe myst-parser
script:
- mkdir build
- cd build
- cmake ..
- make docs pages
- mv pages ../public
artifacts:
paths:
- build/docs/html
- public
expire_in: 1 week
only:
- master