-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
100 lines (96 loc) · 2.88 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
stages:
- build
build-Linux-x86_64-job:
stage: build
script:
- echo "VARIABLES:"
- echo $CI_CUS_LINUX_X86_PYTHON_PATH
- echo $PATH
- pwd
- echo "COMPILE:"
- $CI_CUS_LINUX_X86_PYTHON_PATH -m pip install cibuildwheel==2.15.0
- $CI_CUS_LINUX_X86_PYTHON_PATH -m cibuildwheel --platform linux --output-dir wheelhouse
artifacts:
name: "$CI_PROJECT_NAME-$CI_JOB_NAME"
paths:
- wheelhouse/
tags:
- Linux-x86_64
rules:
- if: $CI_PIPELINE_TRIGGERED == "true"
allow_failure: false
- when: manual
allow_failure: false
build-Linux-arm64-job:
stage: build
script:
- echo "VARIABLES:"
- echo $CI_CUS_LINUX_ARM_PYTHON_PATH
- echo $PATH
- pwd
- echo "COMPILE:"
- $CI_CUS_LINUX_ARM_PYTHON_PATH -m pip install cibuildwheel==2.15.0
- $CI_CUS_LINUX_ARM_PYTHON_PATH -m cibuildwheel --platform linux --output-dir wheelhouse
artifacts:
name: "$CI_PROJECT_NAME-$CI_JOB_NAME"
paths:
- wheelhouse/
tags:
- Linux-arm64
rules:
- if: $CI_PIPELINE_TRIGGERED == "true"
allow_failure: false
- when: manual
allow_failure: false
build-Windows-amd64-job:
stage: build
script:
- echo "VARIABLES:"
- echo $CI_CUS_WINDOWS_OPENSSL_PATH
- echo $CI_CUS_WINDOWS_PYTHON_PATH
- echo $CI_CUS_WINDOWS_VS_PATH
- echo $CI_CUS_WINDOWS_CMAKE_PATH
- pwd
- echo "PREPARE:"
- $env:path="$CI_CUS_WINDOWS_PYTHON_PATH;$CI_CUS_WINDOWS_PYTHON_PATH/Scripts;$CI_CUS_WINDOWS_CMAKE_PATH;$env:path"
- $env:CIBW_ENVIRONMENT_WINDOWS="OPENSSL_ROOT_DIR=`"$CI_CUS_WINDOWS_OPENSSL_PATH`""
- echo $env:CIBW_ENVIRONMENT_WINDOWS
- echo $env:path
- echo "COMPILE:"
- python -m pip install cibuildwheel==2.17.0
- python -m cibuildwheel --platform windows --output-dir wheelhouse
artifacts:
name: "$CI_PROJECT_NAME-$CI_JOB_NAME"
paths:
- wheelhouse/
tags:
- Windows-amd64
rules:
- if: $CI_PIPELINE_TRIGGERED == "true"
allow_failure: false
- when: manual
allow_failure: false
build-MacOS-universal2-job: # This job runs in the build stage, which runs first.
stage: build
variables:
script:
- echo "VARIABLES:"
- echo $CI_CUS_MACOS_UNIVERSAL2_PYTHON_PATH
- echo $CI_CUS_MACOS_UNIVERSAL2_OPENSSL_PATH
- echo $CI_CUS_MACOS_UNIVERSAL2_UUID_PATH
- echo $PATH
- pwd
- echo "COMPILE:"
- $CI_CUS_MACOS_UNIVERSAL2_PYTHON_PATH -m pip install cibuildwheel==2.15.0
- CIBW_ENVIRONMENT="OPENSSL_ROOT_DIR=$CI_CUS_MACOS_UNIVERSAL2_OPENSSL_PATH UUID_ROOT_DIR=$CI_CUS_MACOS_UNIVERSAL2_UUID_PATH" $CI_CUS_MACOS_UNIVERSAL2_PYTHON_PATH -m cibuildwheel --platform macos --output-dir wheelhouse
artifacts:
name: "$CI_PROJECT_NAME-$CI_JOB_NAME"
paths:
- wheelhouse/
tags:
- MacOS-universal2
rules:
- if: $CI_PIPELINE_TRIGGERED == "true"
allow_failure: false
- when: manual
allow_failure: false