add gitlab ci
[benchmarks.git] / .gitlab-ci.yml
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644 (file)
index 0000000..cf64cf2
--- /dev/null
@@ -0,0 +1,26 @@
+image: debian:10
+
+cache:
+    when: always
+    paths:
+        - ccache
+
+build:
+    stage: build
+    before_script:
+        - apt-get update
+        # one package per line to simplify sorting, git diff, etc.
+        - >-
+            apt-get -y install
+            ccache
+            git
+            make
+            sudo
+        - export PATH="/usr/lib/ccache:$PATH"
+        - export CCACHE_BASEDIR="$PWD"
+        - export CCACHE_DIR="$PWD/ccache"
+        - export CCACHE_COMPILERCHECK=content
+        - ccache --zero-stats || true
+        - ccache --show-stats || true
+    script:
+        - make -j$(nproc)
\ No newline at end of file