10000 Add build for python packages on Windows by asenyaev · Pull Request #4 · sergregory/opencv-python · GitHub
[go: up one dir, main page]

Skip to content

Add build for python packages on Windows #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Turned on all python versions, uploading artifacts
  • Loading branch information
asenyaev authored Apr 16, 2021
commit c7db7042b85a59deda63c8cc1f90d53aae044fee
55 changes: 53 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest] # ubuntu-latest,
python-version: [3.6] # [3.6, 3.7, 3.8, 3.9]
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
platform: [x32, x64]
with_contrib: [0, 1]
without_gui: [0, 1]
Expand Down Expand Up @@ -154,7 +154,58 @@ jobs:
shell: cmd

- name: saving artifacts
if: ${{ matrix.os == 'windows-latest' }}
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}-wheels-${{ matrix.python-version }}-${{ matrix.platform }}-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
path: dist\opencv*.whl

- name: saving artifacts
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}-wheels-${{ matrix.python-version }}-${{ matrix.platform }}-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
path: ./wheelhouse/opencv*.whl


# - name: Upload wheels ${{ matrix.os }}
# if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
# env:
# # PYPI repository
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# # PYPITEST repository
# # TWINE_USERNAME: ${{ secrets.PYPITEST_USERNAME }}
# # TWINE_PASSWORD: ${{ secrets.PYPITEST_PASSWORD }}
# # TWINE_REPOSITORY_URL: 'https://test.pypi.org/legacy/'
# run: |
# twine upload --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/*
# # Upload wheels to PYPITEST
# #twine upload --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/*

# - name: Upload wheels ${{ matrix.os }}
# if: ${{ matrix.os == 'windows-latest' && startsWith(github.ref, 'refs/tags/')}}
# env:
# USER: fXgF9uyy6sT0JoVOR7BoqA==
# PASS: 0bXSOVjf9x8L7nErTivu92TF1FwNosTjFJQPmxp8Dys=
# run: |
# cd ${{ github.workspace }}
# if (${Env:ENABLE_CONTRIB} -eq 0) {
# if (${Env:ENABLE_HEADLESS} -eq 0) {
# echo "This is a default build. Deployment will be done to PyPI entry opencv-python."
# }
# else {
# echo "This is a headless build. Deployment will be done to PyPI entry opencv-python-headless."
# }
# }
# else {
# if (${Env:ENABLE_HEADLESS} -eq 0) {
# echo "This is a contrib build. Deployment will be done to PyPI entry opencv-contrib-python."
# }
# else {
# echo "This is a headless contrib build. Deployment will be done to PyPI entry opencv-contrib-python-headless."
# }
# }
# &python -m pip install twine
# &python -m twine upload -u ${Env:USER} -p ${Env:PASS} --skip-existing dist/opencv*
# shell: powershell
0