test #41
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: CI | |
on: | |
push: | |
branches: [icudtl] | |
jobs: | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} (${{ matrix.arch }}) for ${{ matrix.cp }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-2022] | |
arch: [auto64] | |
cp: [cp310] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
CIBW_BUILD: "${{ matrix.cp }}-*" | |
CIBW_SKIP: "*musllinux*" | |
CIBW_ARCHS: ${{ matrix.arch }} | |
CIBW_ENVIRONMENT_MACOS: TARGET_ARCH=${{ matrix.arch }} MACOSX_DEPLOYMENT_TARGET=11.0 | |
CIBW_BEFORE_ALL: bash scripts/build_${{ runner.os }}.sh | |
CIBW_BEFORE_BUILD: pip install pybind11 numpy | |
CIBW_TEST_REQUIRES: pytest pillow glfw | |
CIBW_TEST_REQUIRES_MACOS: pytest pillow pyopengl | |
# download, unpack and copy with renaming "icudtl.dat" to the right place on windows, for SkUnicode | |
CIBW_BEFORE_TEST_WINDOWS: bash {project}/scripts/install-icudtl.sh | |
CIBW_TEST_COMMAND: python -m pytest {project}/tests | |
CIBW_TEST_COMMAND_LINUX: > | |
xvfb-run -s "-screen 0 640x480x24" python -m pytest {project}/tests | |
CIBW_TEST_SKIP: "*-macosx_arm64" | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: wheel-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.cp }} | |
path: ./wheelhouse/*.whl |