Skip to content

Commit c7db704

Browse files
authored
Turned on all python versions, uploading artifacts
1 parent 8a4a967 commit c7db704

File tree

1 file changed

+53
-2
lines changed

1 file changed

+53
-2
lines changed

.github/workflows/build_wheels.yml

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy