diff --git a/.gitlab/ci/build.gitlab-ci.yml b/.gitlab/ci/build.gitlab-ci.yml
index 896bdb5abe234278e178cd860baf619f21107ce1..081f95366f8e9f6292e289d3f48d9d755d1adfce 100644
--- a/.gitlab/ci/build.gitlab-ci.yml
+++ b/.gitlab/ci/build.gitlab-ci.yml
@@ -5,7 +5,7 @@ build:ubuntu_cpp:
     - docker
 
   script:
-    - ./setup.sh --all --tests
+    - ./setup.sh --all --tests --release
 
 build:ubuntu_python:
   stage: build
@@ -23,7 +23,7 @@ build:ubuntu_python:
         onnxruntime \
         torch \
         requests
-    - ./setup.sh --all --python --tests
+    - ./setup.sh --all --python --tests --release
   artifacts:
     expire_in: 1 week
     paths: