diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 96b8229..db479a3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -65,6 +65,13 @@ jobs: with: path: ./wheelhouse/*.whl + - name: Test wheel on host Linux + if: runner.os == 'Linux' && matrix.arch == 'x86_64' + run: | + pip install wheelhouse/*manylinux*x86_64*.whl + ninja --version + python -m ninja --version + build_sdist: name: Build source distribution needs: [lint] diff --git a/pyproject.toml b/pyproject.toml index d3ddc9c..b81dab6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,9 +17,11 @@ repair-wheel-command = "python scripts/repair_wheel.py -w {dest_dir} {wheel}" test-extras = "test" test-command = "pytest {project}/tests" -[tool.cibuildwheel.linux] +[[tool.cibuildwheel.overrides]] +select = "*-manylinux_{x86_64,i686}" manylinux-x86_64-image = "manylinux1" manylinux-i686-image = "manylinux1" +environment = { LDFLAGS = "-static-libstdc++" } [tool.cibuildwheel.macos.environment] MACOSX_DEPLOYMENT_TARGET = "10.9"