diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ecdd38f..320a526 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,15 +39,21 @@ jobs: activate-environment: test-environment python-version: ${{ matrix.python-version }} channels: conda-forge - conda-build-version: '3.21.4' + miniforge-variant: Mambaforge - name: Install basic dependencies run: | - conda install -q -y cython>=0.26 "ipopt=${{ matrix.ipopt-version }}" numpy>=1.15 pkg-config>=0.29.2 setuptools>=39.0 - conda list - - name: Build wheel - run: | - python setup.py bdist_wheel --dist-dir=wheelhouse - unzip -l wheelhouse/*.whl - conda remove ipopt numpy - python -m pip install wheelhouse/*.whl - python examples/hs071.py + mamba install -q -y cython>=0.26 "ipopt=${{ matrix.ipopt-version }}" numpy>=1.15 pkg-config>=0.29.2 setuptools>=39.0 + mamba list + - name: Build wheels + uses: pypa/cibuildwheel@v2.12.0 + - uses: actions/upload-artifact@v3 + with: + path: ./wheelhouse/*.whl + #- name: Build wheel + #run: | + #python setup.py bdist_wheel --dist-dir=wheelhouse + #for wheel in wheelhouse/*.whl; do auditwheel repair $wheel; done + #unzip -l wheelhouse/*.whl + #mamba remove ipopt numpy + #python -m pip install wheelhouse/*.whl + #python examples/hs071.py