diff --git a/.gitlab/ci/build.gitlab-ci.yml b/.gitlab/ci/build.gitlab-ci.yml index 6aff0d78d07471310228f69ee5a57f6ed5c27a93..b081800c9965db39ccca440cf8fe73f6afb8db81 100644 --- a/.gitlab/ci/build.gitlab-ci.yml +++ b/.gitlab/ci/build.gitlab-ci.yml @@ -1,16 +1,30 @@ -build:ubuntu: +build:ubuntu_cpp: stage: build tags: - docker image: n2d2-ci/ubuntu20.04/cpu:latest script: - - mkdir -p build - - mkdir -p install - - cd build - - cmake -DCMAKE_INSTALL_PREFIX:PATH=../install -DCMAKE_BUILD_TYPE=Debug -DWERROR=ON .. + - mkdir -p build_cpp + - mkdir -p install_cpp + - cd build_cpp + - cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug -DWERROR=ON .. - make -j4 all install + artifacts: + paths: + - build_cpp/ + - install_cpp/ + +build:ubuntu_python: + stage: build + tags: + - docker + image: n2d2-ci/ubuntu20.04/cpu:latest + + script: + - export AIDGE_INSTALL=`pwd`/install + - pip install . -v artifacts: paths: - build/ diff --git a/.gitlab/ci/test.gitlab-ci.yml b/.gitlab/ci/test.gitlab-ci.yml index 92dfd2948504fb4bd1c99cb58c4ca6d88579f6a1..ec40f61d40a1b9c333b68c74bec16616879394da 100644 --- a/.gitlab/ci/test.gitlab-ci.yml +++ b/.gitlab/ci/test.gitlab-ci.yml @@ -1,6 +1,6 @@ test:ubuntu_cpp: stage: test - needs: ["build:ubuntu"] + needs: ["build:ubuntu_cpp"] tags: - docker image: n2d2-ci/ubuntu20.04/cpu:latest @@ -10,7 +10,7 @@ test:ubuntu_cpp: test:ubuntu_python: stage: test - needs: ["build:ubuntu"] + needs: ["build:ubuntu_python"] tags: - docker image: n2d2-ci/ubuntu20.04/cpu:latest