Commit 1c6c39d5 authored by Maxence Naud's avatar Maxence Naud
Browse files

Edit ubuntu_cpp.gitlab-ci.yml use --parallel

parent a0f544a3
Loading
Loading
Loading
Loading
+6 −9
Original line number Diff line number Diff line
@@ -44,10 +44,9 @@ include:
build:ubuntu_cpp:
  extends: .build:ubuntu_cpp:template
  script:
    - cd $BUILD_DIR
    # WERROR=OFF until https://gitlab.eclipse.org/eclipse/aidge/aidge/-/issues/137 is not closed
    - cmake  -DCMAKE_BUILD_TYPE=Release -DWERROR=ON -DCOVERAGE=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DPYBIND=0 ..
    - make -j4 all install
    - cmake -S . -B "${BUILD_DIR}" --DCMAKE_BUILD_TYPE=Release -DWERROR=ON -DCOVERAGE=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DPYBIND=0
    - cmake --build "${BUILD_DIR}" --target install --parallel


build:ubuntu_cpp:g++:
@@ -64,12 +63,11 @@ build:ubuntu_cpp:g++:
    matrix:
      - Gplusplus_VERSION: ["10","12"]
  script:
    - cd $BUILD_DIR
    - apt-get install -y g++-$Gplusplus_VERSION
    - export CXX=/usr/bin/g++-$Gplusplus_VERSION
    # WERROR=OFF until https://gitlab.eclipse.org/eclipse/aidge/aidge/-/issues/137 is not closed
    - cmake -DCMAKE_BUILD_TYPE=Release -DWERROR=ON -DCOVERAGE=OFF -DPYBIND=0 -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
    - make -j4 all install
    - cmake -S . -B "${BUILD_DIR}" -DCMAKE_BUILD_TYPE=Release -DWERROR=ON -DCOVERAGE=OFF -DPYBIND=0 -DCMAKE_EXPORT_COMPILE_COMMANDS=1
    - cmake --build "${BUILD_DIR}" --target install --parallel

build:ubuntu_cpp:clang:
  stage: build
@@ -85,11 +83,10 @@ build:ubuntu_cpp:clang:
    matrix:
      - CLANG_VERSION: ["12","15"]
  script:
    - cd $BUILD_DIR
    - apt-get install -y clang-$CLANG_VERSION
    # WERROR=OFF until https://gitlab.eclipse.org/eclipse/aidge/aidge/-/issues/137 is not closed
    - cmake -DCMAKE_CXX_COMPILER=/usr/bin/clang++-$CLANG_VERSION -DCMAKE_BUILD_TYPE=Release -DWERROR=ON -DCOVERAGE=OFF -DPYBIND=0 -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
    - make -j4 all install
    - cmake -S . -B "${BUILD_DIR}" -DCMAKE_CXX_COMPILER=/usr/bin/clang++-$CLANG_VERSION -DCMAKE_BUILD_TYPE=Release -DWERROR=ON -DCOVERAGE=OFF -DPYBIND=0 -DCMAKE_EXPORT_COMPILE_COMMANDS=1 ..
    - cmake --build "${BUILD_DIR}" --target install --parallel


####################################################################################################