From d20ce8c4e6ef723bec0ee4f06b285dff8da8c6f7 Mon Sep 17 00:00:00 2001 From: RĂ©mi Flamary Date: Wed, 22 Apr 2020 16:21:04 +0200 Subject: debug build wheels windows --- .github/workflows/build_wheels.yml | 44 ++++++++++---------------------------- 1 file changed, 11 insertions(+), 33 deletions(-) (limited to '.github') diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index ed8bd3d..4874d84 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -7,9 +7,12 @@ on: jobs: - build_linux: - - runs-on: ubuntu-latest + build_wheels: + name: Build wheel on ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-18.04, windows-latest, macos-latest] steps: - uses: actions/checkout@v1 @@ -23,40 +26,15 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt pip install -U "cython" + - name: Install cibuildwheel run: | python -m pip install cibuildwheel==1.3.0 - - name: Build wheel - env: - CIBW_BEFORE_BUILD: "pip install numpy cython" - run: | - python -m cibuildwheel --output-dir wheelhouse - - - uses: actions/upload-artifact@v1 - with: - name: wheels - path: ./wheelhouse - - build_windows: - - runs-on: windows-2019 - - steps: - - uses: actions/checkout@v1 - - name: Set up Python 3.8 - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - - name: Install dependencies + - name: Install Visual C++ for Python 2.7 + if: startsWith(matrix.os, 'windows') run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -U "cython" - - name: Install cibuildwheel - run: | - python -m pip install cibuildwheel==1.3.0 + choco install vcpython27 -f -y - name: Build wheel env: @@ -67,4 +45,4 @@ jobs: - uses: actions/upload-artifact@v1 with: name: wheels - path: ./wheelhouse \ No newline at end of file + path: ./wheelhouse -- cgit v1.2.3