|
22 | 22 | strategy:
|
23 | 23 | fail-fast: false
|
24 | 24 | 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] |
27 | 27 | platform: [x32, x64]
|
28 | 28 | with_contrib: [0, 1]
|
29 | 29 | without_gui: [0, 1]
|
@@ -154,7 +154,58 @@ jobs:
|
154 | 154 | shell: cmd
|
155 | 155 |
|
156 | 156 | - name: saving artifacts
|
| 157 | + if: ${{ matrix.os == 'windows-latest' }} |
157 | 158 | uses: actions/upload-artifact@v2
|
158 | 159 | with:
|
159 | 160 | name: ${{ matrix.os }}-wheels-${{ matrix.python-version }}-${{ matrix.platform }}-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
|
160 | 161 | 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