diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3facb3c1972a1ca72ed4ac6b05b18ed3f0ae1b17..930ddb13e261761081bcede789aec5f8dc03b3dd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,7 +2,7 @@ variables:
   RUN:
     value: "all"
     description: "The tests that should run. Possible values: ubuntu, win, all."
-  GIT_DEPTH: 10
+  GIT_DEPTH: 1
 
 stages:
   - build
@@ -19,6 +19,8 @@ build_ubuntu_gcc:
     GIT_SUBMODULE_STRATEGY: recursive
   timeout: 10m
   retry: 1
+  before_script:
+    - git lfs install
   script:
     - mkdir debug
     - cd debug
@@ -42,6 +44,8 @@ build_win10_msvc:
     GIT_SUBMODULE_STRATEGY: recursive
   timeout: 10m
   retry: 1
+  before_script:
+    - git lfs install
   script:
     - cd 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\'
     - .\Launch-VsDevShell.ps1