Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c7db704

Browse filesBrowse files
authored
Turned on all python versions, uploading artifacts
1 parent 8a4a967 commit c7db704
Copy full SHA for c7db704

File tree

1 file changed

+53
-2
lines changed
Filter options

1 file changed

+53
-2
lines changed

‎.github/workflows/build_wheels.yml

Copy file name to clipboardExpand all lines: .github/workflows/build_wheels.yml
+53-2Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
os: [windows-latest, ubuntu-latest, macos-latest] # ubuntu-latest,
26-
python-version: [3.6] # [3.6, 3.7, 3.8, 3.9]
25+
os: [windows-latest, ubuntu-latest, macos-latest]
26+
python-version: [3.6, 3.7, 3.8, 3.9]
2727
platform: [x32, x64]
2828
with_contrib: [0, 1]
2929
without_gui: [0, 1]
@@ -154,7 +154,58 @@ jobs:
154154
shell: cmd
155155

156156
- name: saving artifacts
157+
if: ${{ matrix.os == 'windows-latest' }}
157158
uses: actions/upload-artifact@v2
158159
with:
159160
name: ${{ matrix.os }}-wheels-${{ matrix.python-version }}-${{ matrix.platform }}-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
160161
path: dist\opencv*.whl
162+
163+
- name: saving artifacts
164+
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
165+
uses: actions/upload-artifact@v2
166+
with:
167+
name: ${{ matrix.os }}-wheels-${{ matrix.python-version }}-${{ matrix.platform }}-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
168+
path: ./wheelhouse/opencv*.whl
169+
170+
171+
# - name: Upload wheels ${{ matrix.os }}
172+
# if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
173+
# env:
174+
# # PYPI repository
175+
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
176+
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
177+
# # PYPITEST repository
178+
# # TWINE_USERNAME: ${{ secrets.PYPITEST_USERNAME }}
179+
# # TWINE_PASSWORD: ${{ secrets.PYPITEST_PASSWORD }}
180+
# # TWINE_REPOSITORY_URL: 'https://test.pypi.org/legacy/'
181+
# run: |
182+
# twine upload --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/*
183+
# # Upload wheels to PYPITEST
184+
# #twine upload --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/*
185+
186+
# - name: Upload wheels ${{ matrix.os }}
187+
# if: ${{ matrix.os == 'windows-latest' && startsWith(github.ref, 'refs/tags/')}}
188+
# env:
189+
# USER: fXgF9uyy6sT0JoVOR7BoqA==
190+
# PASS: 0bXSOVjf9x8L7nErTivu92TF1FwNosTjFJQPmxp8Dys=
191+
# run: |
192+
# cd ${{ github.workspace }}
193+
# if (${Env:ENABLE_CONTRIB} -eq 0) {
194+
# if (${Env:ENABLE_HEADLESS} -eq 0) {
195+
# echo "This is a default build. Deployment will be done to PyPI entry opencv-python."
196+
# }
197+
# else {
198+
# echo "This is a headless build. Deployment will be done to PyPI entry opencv-python-headless."
199+
# }
200+
# }
201+
# else {
202+
# if (${Env:ENABLE_HEADLESS} -eq 0) {
203+
# echo "This is a contrib build. Deployment will be done to PyPI entry opencv-contrib-python."
204+
# }
205+
# else {
206+
# echo "This is a headless contrib build. Deployment will be done to PyPI entry opencv-contrib-python-headless."
207+
# }
208+
# }
209+
# &python -m pip install twine
210+
# &python -m twine upload -u ${Env:USER} -p ${Env:PASS} --skip-existing dist/opencv*
211+
# shell: powershell

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.