Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
build.gitlab-ci.yml 7.13 KiB
build:ubuntu_cpp:
  stage: build
  needs: []
  tags:
    - docker
  script:
    # Download dependencies
    # 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

    # Build current module
    - export CMAKE_PREFIX_PATH=../install_cpp
    - mkdir -p build_cpp
    - cd build_cpp
    - cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug -DWERROR=ON -DCOVERAGE=ON ..
    - make -j4 all install

  artifacts:
    expire_in: 1 week
    paths:
      - build_cpp/
      - install_cpp/

build:ubuntu_cpp_g++10:
  stage: build
  needs: []
  tags:
    - docker

  script:
    # Download dependencies
    # 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

    # Build current module
    - export CMAKE_PREFIX_PATH=../install_cpp
    - apt install -y g++-10
    - mkdir -p build_cpp
    - mkdir -p install_cpp
    - cd build_cpp
    - export CXX=/usr/bin/g++-10
    - cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug -DWERROR=ON -DCOVERAGE=ON ..
    - make -j4 all install

build:ubuntu_cpp_g++12:
  stage: build
  needs: []
  tags:
    - docker

  script:
    # Download dependencies
    # 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

    # Build current module
    - export CMAKE_PREFIX_PATH=../install_cpp
    - apt install -y g++-12
    - mkdir -p build_cpp
    - mkdir -p install_cpp
    - cd build_cpp
    - export CXX=/usr/bin/g++-12
    - cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug -DWERROR=ON -DCOVERAGE=ON ..
    - make -j4 all install