Skip to content
Snippets Groups Projects

move tensorImpl cpu to core

Merged Cyril Moineau requested to merge QualityOfLife into dev
Files
7
 
include:
 
- remote: 'https://gitlab.eclipse.org/eclipse/aidge/gitlab_shared_files/-/raw/main/.gitlab/ci/shared_script.gitlab-ci.yml'
 
build:ubuntu_cpp:
build:ubuntu_cpp:
stage: build
stage: build
needs: []
needs: []
@@ -6,9 +9,9 @@ build:ubuntu_cpp:
@@ -6,9 +9,9 @@ build:ubuntu_cpp:
script:
script:
# Download dependencies
# Download dependencies
# aidge_core
# aidge_core
- 'curl --location --output build_artifacts.zip "https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:ubuntu_cpp"'
- DEPENDENCY_NAME="aidge_core"
- unzip -o build_artifacts.zip -d .
- DEPENDENCY_JOB="build:ubuntu_cpp"
- rm -rf build_cpp
- !reference [.download_dependency, script]
# Build current module
# Build current module
- export CMAKE_PREFIX_PATH=../install_cpp
- export CMAKE_PREFIX_PATH=../install_cpp
@@ -32,9 +35,9 @@ build:ubuntu_cpp_g++10:
@@ -32,9 +35,9 @@ build:ubuntu_cpp_g++10:
script:
script:
# Download dependencies
# Download dependencies
# aidge_core
# aidge_core
- 'curl --location --output build_artifacts.zip "https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:ubuntu_cpp"'
- DEPENDENCY_NAME="aidge_core"
- unzip -o build_artifacts.zip -d .
- DEPENDENCY_JOB="build:ubuntu_cpp"
- rm -rf build_cpp
- !reference [.download_dependency, script]
# Build current module
# Build current module
- export CMAKE_PREFIX_PATH=../install_cpp
- export CMAKE_PREFIX_PATH=../install_cpp
@@ -55,9 +58,9 @@ build:ubuntu_cpp_g++12:
@@ -55,9 +58,9 @@ build:ubuntu_cpp_g++12:
script:
script:
# Download dependencies
# Download dependencies
# aidge_core
# aidge_core
- 'curl --location --output build_artifacts.zip "https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:ubuntu_cpp"'
- DEPENDENCY_NAME="aidge_core"
- unzip -o build_artifacts.zip -d .
- DEPENDENCY_JOB="build:ubuntu_cpp"
- rm -rf build_cpp
- !reference [.download_dependency, script]
# Build current module
# Build current module
- export CMAKE_PREFIX_PATH=../install_cpp
- export CMAKE_PREFIX_PATH=../install_cpp
@@ -78,9 +81,9 @@ build:ubuntu_cpp_clang12:
@@ -78,9 +81,9 @@ build:ubuntu_cpp_clang12:
script:
script:
# Download dependencies
# Download dependencies
# aidge_core
# aidge_core
- 'curl --location --output build_artifacts.zip "https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:ubuntu_cpp"'
- DEPENDENCY_NAME="aidge_core"
- unzip -o build_artifacts.zip -d .
- DEPENDENCY_JOB="build:ubuntu_cpp"
- rm -rf build_cpp
- !reference [.download_dependency, script]
# Build current module
# Build current module
- export CMAKE_PREFIX_PATH=../install_cpp
- export CMAKE_PREFIX_PATH=../install_cpp
@@ -101,9 +104,9 @@ build:ubuntu_cpp_clang15:
@@ -101,9 +104,9 @@ build:ubuntu_cpp_clang15:
script:
script:
# Download dependencies
# Download dependencies
# aidge_core
# aidge_core
- 'curl --location --output build_artifacts.zip "https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:ubuntu_cpp"'
- DEPENDENCY_NAME="aidge_core"
- unzip -o build_artifacts.zip -d .
- DEPENDENCY_JOB="build:ubuntu_cpp"
- rm -rf build_cpp
- !reference [.download_dependency, script]
# Build current module
# Build current module
- export CMAKE_PREFIX_PATH=../install_cpp
- export CMAKE_PREFIX_PATH=../install_cpp
@@ -120,86 +123,92 @@ build:ubuntu_python:
@@ -120,86 +123,92 @@ build:ubuntu_python:
needs: []
needs: []
tags:
tags:
- docker
- docker
 
script:
script:
# Download dependencies
# Download dependencies
# aidge_core (Python)
# aidge_core (Python)
- 'curl --location --output build_artifacts.zip "https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:ubuntu_python"'
- DEPENDENCY_NAME="aidge_core"
- unzip -o build_artifacts.zip -d .
- DEPENDENCY_JOB="build:ubuntu_python"
 
- !reference [.download_dependency, script]
- python3 -m pip install virtualenv
- python3 -m pip install virtualenv
- virtualenv venv
- virtualenv venv
- source venv/bin/activate
- source venv/bin/activate
- python3 -m pip install -r requirements.txt
- python3 -m pip install -r requirements.txt
- python3 -m pip install .
- python3 -m pip install .
 
- python3 -m pip install numpy unittest-xml-reporting
 
- python3 -m pip list
artifacts:
artifacts:
expire_in: 1 week
expire_in: 1 week
paths:
paths:
- venv/
- venv/
# build:windows_cpp:
build:windows_cpp:
# stage: build
stage: build
# needs: []
needs: []
# tags:
tags:
# - windows
- windows
# image: buildtools
image: buildtools
# before_script:
before_script:
# # Install Chocolatey
# Install Chocolatey
# - Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
- Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# # Install dependencies
# Install dependencies
# - choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
- choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
# - choco install git -Y
- choco install git -Y
# - choco install python -Y
- choco install python -Y
# # Update PATH
# Update PATH
# - $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
- $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
# script:
script:
# # Download dependencies
# Download dependencies
# # aidge_core
# aidge_core
# - 'curl "https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:windows_cpp" -o build_artifacts.zip'
- $DEPENDENCY_NAME="aidge_core"
# - Expand-Archive -Path .\build_artifacts.zip -DestinationPath . -Force
- $DEPENDENCY_JOB="build:windows_cpp"
# - Remove-Item .\build_cpp\ -Recurse
- !reference [.download_dependency_windows, script]
- Remove-Item .\build_cpp\ -Recurse -Force -ErrorAction Ignore
# - $env:CMAKE_PREFIX_PATH = '../install_cpp'
# - mkdir -p build_cpp
- $env:CMAKE_PREFIX_PATH = '../install_cpp'
# - cd build_cpp
- mkdir -p build_cpp
# - cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug ..
- cd build_cpp
# - cmake --build . -j2
- cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug ..
# - cmake --install . --config Debug
- cmake --build . -j2
- cmake --install . --config Debug
# artifacts:
# expire_in: 1 week
artifacts:
# paths:
expire_in: 1 week
# - build_cpp/
paths:
# - install_cpp/
- build_cpp/
- install_cpp/
# build:windows_python:
# stage: build
build:windows_python:
# needs: []
stage: build
# tags:
needs: []
# - windows
tags:
- windows
# image: buildtools
# before_script:
image: buildtools
# # Install Chocolatey
before_script:
# - Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install Chocolatey
# # Install dependencies
- Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# - choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
# Install dependencies
# - choco install git -Y
- choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
# - choco install python -Y
- choco install git -Y
# # Update PATH
- choco install python -Y
# - $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
# Update PATH
# script:
- $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
# # Download dependencies
script:
# # aidge_core (Python)
# Download dependencies
# - 'curl "https://gitlab.eclipse.org/api/v4/projects/5139/jobs/artifacts/main/download?job=build:windows_python" -o build_artifacts.zip'
# aidge_core (Python)
# - Expand-Archive -Path .\build_artifacts.zip -DestinationPath . -Force
- $DEPENDENCY_NAME="aidge_core"
- $DEPENDENCY_JOB="build:windows_python"
# - python -m pip install virtualenv
- !reference [.download_dependency_windows, script]
# - virtualenv venv
# - venv\Scripts\Activate.ps1
- python -m pip install virtualenv
# - python -m pip install -r requirements.txt
- virtualenv venv
# - python -m pip install .
- venv\Scripts\Activate.ps1
# artifacts:
- python -m pip install -r requirements.txt
# expire_in: 1 week
- python -m pip install .
# paths:
artifacts:
# - venv/
expire_in: 1 week
 
paths:
 
- venv/
Loading