@@ -33,10 +33,22 @@ jobs:
33
33
runs_on : ubuntu-latest
34
34
container : ubuntu:20.04
35
35
py_platform : manylinux_2_31_x86_64
36
- # - os: ubuntu-22.04
37
- # runs_on: ubuntu-latest
38
- # container: ubuntu:22.04
39
- # py_platform: manylinux_2_35_x86_64
36
+ python_version : " 3.7"
37
+ - os : ubuntu-20.04
38
+ runs_on : ubuntu-latest
39
+ container : ubuntu:20.04
40
+ py_platform : manylinux_2_31_x86_64
41
+ python_version : " 3.8"
42
+ - os : ubuntu-20.04
43
+ runs_on : ubuntu-latest
44
+ container : ubuntu:20.04
45
+ py_platform : manylinux_2_31_x86_64
46
+ python_version : " 3.9"
47
+ - os : ubuntu-20.04
48
+ runs_on : ubuntu-latest
49
+ container : ubuntu:20.04
50
+ py_platform : manylinux_2_31_x86_64
51
+ python_version : " 3.10"
40
52
env :
41
53
DEBIAN_FRONTEND : noninteractive
42
54
steps :
@@ -59,10 +71,14 @@ jobs:
59
71
libflann-dev libjsoncpp-dev libyaml-cpp-dev git cmake ninja-build
60
72
build-essential autoconf automake libtool bison libpcre2-dev libpcre3-dev
61
73
lcov libbullet-dev libbullet-extras-dev patchelf python3-venv -y -qq
74
+ - uses : actions/setup-python@v4
75
+ id : setup-python
76
+ with :
77
+ python-version : ' ${{ matrix.config.python_version }}'
62
78
- name : pip
63
79
run : |
64
- sudo python3 -m pip install --upgrade pip
65
- sudo python3 -m pip install auditwheel wheel numpy setuptools colcon-common-extensions vcstool
80
+ python -m pip install --upgrade pip
81
+ python -m pip install auditwheel wheel numpy setuptools colcon-common-extensions vcstool
66
82
- name : vcs import
67
83
working-directory : ws/src
68
84
run : vcs import --input tesseract_python/dependencies_with_ext.rosinstall
75
91
--event-handlers console_cohesion+
76
92
--cmake-args -DCMAKE_BUILD_TYPE=Release
77
93
-DBUILD_IPOPT=OFF -DBUILD_SNOPT=OFF
78
- -DPYTHON_EXECUTABLE=/usr/bin/python3 -DTESSERACT_PYTHON_BUILD_WHEEL=ON
94
+ -DPYTHON_EXECUTABLE="${{ steps.setup-python.outputs.python-path }}"
95
+ -DTESSERACT_PYTHON_BUILD_WHEEL=ON
79
96
-DTESSERACT_PYTHON_WHEEL_PLATFORM=${{ matrix.config.py_platform }}
80
97
-DTESSERACT_ENABLE_EXAMPLES=OFF -DTESSERACT_PLUGIN_FACTORY_CALLBACKS=ON
81
98
- name : test
92
109
- name : archive wheels
93
110
uses : actions/upload-artifact@v2
94
111
with :
95
- name : ' python-wheels-${{ matrix.config.os }}'
112
+ name : ' python-wheels-${{ matrix.config.os }}-${{ matrix.config.python_version }} '
96
113
path : ws/build/tesseract_python/python/*
97
114
build-win :
98
115
runs-on : windows-2019
@@ -120,12 +137,13 @@ jobs:
120
137
- uses : actions/checkout@v2
121
138
with :
122
139
path : ws/src/tesseract_python
123
- - uses : actions/setup-python@v2
140
+ - uses : actions/setup-python@v4
141
+ id : setup-python
124
142
with :
125
143
python-version : ' ${{ matrix.config.python_version }}'
126
144
architecture : ${{ matrix.config.arch }}
127
145
- name : vcpkg build
128
- uses : johnwason/vcpkg-action@961d53e336573f6165b896494fabb1abc002e8c1
146
+ uses : johnwason/vcpkg-action@v3
129
147
with :
130
148
pkgs : >-
131
149
${{ env.VCPKG_PKGS }}
@@ -134,8 +152,6 @@ jobs:
134
152
- name : pip3
135
153
run : |
136
154
python -m pip install numpy setuptools wheel pytest delvewheel colcon-common-extensions vcstool
137
- - name : env python3
138
- run : echo ("PYTHON3_EXE=" + (Get-Command Python.exe).Path) | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
139
155
- name : choco
140
156
run : |
141
157
choco install swig ninja -r
@@ -157,7 +173,7 @@ jobs:
157
173
--event-handlers console_cohesion+ ^
158
174
--packages-ignore tesseract_examples trajopt_ifopt trajopt_sqp gtest ^
159
175
--cmake-args -GNinja -DCMAKE_BUILD_TYPE=Release ^
160
- -DPYTHON_EXECUTABLE="${{ env.PYTHON3_EXE }}" ^
176
+ -DPYTHON_EXECUTABLE="${{ steps.setup-python.outputs.python-path }}" ^
161
177
-DTESSERACT_PYTHON_BUILD_WHEEL=ON ^
162
178
-DTESSERACT_ENABLE_EXAMPLES=OFF -DTESSERACT_PLUGIN_FACTORY_CALLBACKS=ON ^
163
179
-DVCPKG_APPLOCAL_DEPS=OFF ^
@@ -198,7 +214,22 @@ jobs:
198
214
with :
199
215
name : ' build-logs-win-${{ matrix.config.arch }}-python-${{ matrix.config.python_version }}'
200
216
path : " **/*.log"
201
- retention-days : 2
202
-
203
-
204
-
217
+ retention-days : 2
218
+ collect-wheels :
219
+ needs :
220
+ - build-win
221
+ - build-ubuntu
222
+ runs-on : ubuntu-20.04
223
+ steps :
224
+ - uses : actions/checkout@v2
225
+ with :
226
+ path : robotraconteur
227
+ - name : Download CI artifacts
228
+ uses : actions/download-artifact@v2
229
+ with :
230
+ path : artifacts/main
231
+ - name : archive wheels
232
+ uses : actions/upload-artifact@v2
233
+ with :
234
+ name : ' python-wheels-all'
235
+ path : artifacts/**/wheelhouse/*.whl
0 commit comments