Enable and fix for windows build by cmake project file #772
Workflow file for this run
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: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, windows-2022, macos-14] | |
env: | |
CIBW_BEFORE_ALL_LINUX: ./tools/install_swig.sh | |
CIBW_BEFORE_ALL_MACOS: brew install gnu-sed swig automake libtool | |
CIBW_BEFORE_ALL_WINDOWS: choco install swig --version=3.0.12 --no-progress --allow-downgrade -y | |
CIBW_BEFORE_BUILD_WINDOWS: .\tools\msvc\swig.bat | |
CIBW_REPAIR_WHEEL_COMMAND_LINUX: auditwheel repair --only-plat -w {dest_dir} {wheel} | |
LIBWALLY_DIR: "." | |
SWIG_PATH: "C:\\ProgramData\\chocolatey\\lib\\swig\\tools\\install\\swigwin-3.0.12" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Install MSVC | |
if: runner.os == 'Windows' | |
uses: ilammy/[email protected] | |
- name: Install qemu aarch64 | |
if: runner.os == 'Linux' | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: arm64 | |
- name: Build Wheels | |
uses: pypa/[email protected] | |
env: | |
CIBW_SKIP: "cp3{5..7}-* cp3{6..12}-win32* cp3{6..12}-musllinux_aarch64* pp*" | |
CIBW_ARCHS_LINUX: "x86_64 aarch64" | |
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2" | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: wheels-${{ matrix.os }}-${{ strategy.job-index }} | |
path: ./wheelhouse/*.whl | |
merge: | |
runs-on: ubuntu-latest | |
needs: build_wheels | |
steps: | |
- name: Merge Artifacts | |
uses: actions/upload-artifact/merge@v4 | |
with: | |
name: all-wheels | |
pattern: wheels-* |