Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_backend_cpu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
aidge
aidge_backend_cpu
Commits
d3f7829a
Commit
d3f7829a
authored
1 year ago
by
Cyril Moineau
Browse files
Options
Downloads
Patches
Plain Diff
Add back Windows CI.
parent
203dcfab
No related branches found
No related tags found
2 merge requests
!50
version 0.2.0
,
!36
Win ci
Pipeline
#38180
failed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab/ci/build.gitlab-ci.yml
+69
-67
69 additions, 67 deletions
.gitlab/ci/build.gitlab-ci.yml
with
69 additions
and
67 deletions
.gitlab/ci/build.gitlab-ci.yml
+
69
−
67
View file @
d3f7829a
...
@@ -141,70 +141,72 @@ build:ubuntu_python:
...
@@ -141,70 +141,72 @@ build:ubuntu_python:
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
]
# - $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/
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment