From 2075be5df0962cd62b3894a79816305df70d6d08 Mon Sep 17 00:00:00 2001
From: Maxence Naud <maxence.naud@cea.fr>
Date: Thu, 1 Feb 2024 16:56:59 +0000
Subject: [PATCH] Update build.gitlab-ci.yml

---
 .gitlab/ci/build.gitlab-ci.yml | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/.gitlab/ci/build.gitlab-ci.yml b/.gitlab/ci/build.gitlab-ci.yml
index abd7201..7fa6e8a 100644
--- a/.gitlab/ci/build.gitlab-ci.yml
+++ b/.gitlab/ci/build.gitlab-ci.yml
@@ -5,14 +5,13 @@ build:ubuntu_cpp:
     - docker
   script:
     # Download dependencies
+    - DEPENDENCY_JOB="build:ubuntu_cpp"
     # aidge_core
-    - 'curl --location --output build_artifacts.zip "https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:ubuntu_cpp"'
-    - unzip -o build_artifacts.zip -d .
-    - rm -rf build_cpp
+    - DEPENDENCY_NAME="aidge_core" 
+    - !reference [.download_dependency, script]   
     # aidge_backend_cpu
-    - 'curl --location --output build_artifacts.zip "https://gitlab.eclipse.org/api/v4/projects/5140/jobs/artifacts/master/download?job=build:ubuntu_cpp"'
-    - unzip -o build_artifacts.zip -d .
-    - rm -rf build_cpp
+    - DEPENDENCY_NAME="aidge_backend_cpu"
+    - !reference [.download_dependency, script]    
   
     # Build current module
     - export CMAKE_PREFIX_PATH=../install_cpp
-- 
GitLab