-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
38 lines (31 loc) · 965 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
# Reference: https://git.mel.vin/template/c/commit/584b866fe79411b3f361e79fe0c0d68a3b278b9e
image: ubuntu:24.04
stages:
- build
# - test
cache:
paths:
- apt-cache/
variables:
# https://askubuntu.com/questions/909277/avoiding-user-interaction-with-tzdata-when-installing-certbot-in-a-docker-contai
DEBIAN_FRONTEND: "noninteractive"
build:
stage: build
before_script:
- apt update -qq && apt -o dir::cache::archives="apt-cache" install -y build-essential g++ g++-multilib zlib1g-dev libminizip-dev libedit-dev gettext catch2 cmake git
- git submodule sync --recursive
- git submodule update --init --recursive
script:
- make debug -j8
artifacts:
paths:
- bin/debug/HFWorkshop
# depending on your build setup it's most likely a good idea to cache outputs to reduce the build time
cache:
paths:
- build/*.o
# run tests using the binary built before
#test:
# stage: test
# script:
# - ./runmytests.sh