ci: tox tests on windows run on the jenkins workspace temp path #646
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
workflow_dispatch: | |
inputs: | |
save: | |
description: 'Save Wheels' | |
required: true | |
default: false | |
type: boolean | |
jobs: | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: macOS-11 | |
compiler_version: 13 | |
- os: ubuntu-20.04 | |
compiler_version: 10.2 | |
- os: windows-2019 | |
compiler_version: 16 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.11' | |
- name: Install cibuildwheel | |
run: python -m pip install -r requirements/requirements-cibuildwheel.txt | |
- name: Build wheels | |
if: contains(matrix.os, 'windows') | |
shell: cmd | |
run: | | |
rmdir /S /Q C:\\Strawberry | |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" | |
python -m cibuildwheel --output-dir wheelhouse | |
env: | |
CONAN_COMPILER_VERSION: ${{ matrix.compiler_version }} | |
- name: Build wheels | |
run: python -m cibuildwheel --output-dir wheelhouse | |
if: "!contains(matrix.os, 'windows')" | |
# - name: Build wheels | |
# uses: pypa/cibuildwheel@v2.11.2 | |
env: | |
CONAN_COMPILER_VERSION: ${{ matrix.compiler_version }} | |
# CIBW_SOME_OPTION: value | |
- uses: actions/upload-artifact@v3 | |
if: ${{ inputs.save }} | |
with: | |
name: uiucprescon.ocr-wheels | |
path: ./wheelhouse/*.whl |