From 0e82d13f79b5f7e2dcc9667855a3ca38c79d8b39 Mon Sep 17 00:00:00 2001 From: MiXaiLL76 Date: Wed, 30 Oct 2024 16:43:40 +0300 Subject: [PATCH] fix build arm --- .github/workflows/build.yml | 41 ++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0fd77e4..dee82d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,24 +19,31 @@ jobs: # - os: ubuntu-latest # linux x86_64 # cibw_archs: x86_64 # cibw_skip: "pp*" + # free_thread: True - os: ubuntu-latest # linux arm64 gnu cibw_archs: aarch64 cibw_skip: "pp* *musllinux*" + free_thread: True # - os: ubuntu-latest # linux arm64 musl # cibw_archs: aarch64 # cibw_skip: "pp* *manylinux*" + # free_thread: True - os: windows-latest cibw_archs: AMD64 cibw_skip: "pp*" + free_thread: True - os: windows-latest cibw_archs: ARM64 cibw_skip: "pp*" + free_thread: False # - os: macos-13 # cibw_archs: x86_64 # cibw_skip: "pp*" + # free_thread: True # - os: macos-14 # cibw_archs: arm64 # cibw_skip: "pp*" + # free_thread: True steps: - uses: actions/checkout@v4 @@ -45,13 +52,13 @@ jobs: uses: docker/setup-qemu-action@v3 with: platforms: arm64 - + - name: Setup ARM Linux if: runner.os == 'Linux' && matrix.cibw_archs == 'aarch64' run: | sudo apt update --fix-missing - sudo apt install -y libjpeg-dev zlib1g-dev - + sudo apt install -y libtiff5-dev libjpeg8-dev libopenjp2-7-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk libharfbuzz-dev libfribidi-dev libxcb1-dev + - name: Setup macOS if: ${{ runner.os == 'macOS' }} run: | @@ -63,11 +70,11 @@ jobs: CIBW_PROJECT_REQUIRES_PYTHON: ">=3.13" CIBW_PRERELEASE_PYTHONS: False CIBW_BUILD_FRONTEND: build - CIBW_FREE_THREADED_SUPPORT: true + CIBW_FREE_THREADED_SUPPORT: ${{ matrix.free_thread }} CIBW_SKIP: ${{ matrix.cibw_skip }} CIBW_ARCHS: ${{ matrix.cibw_archs }} CIBW_TEST_REQUIRES: "pytest parameterized opencv-python-headless pycocotools" - CIBW_TEST_COMMAND: "cd {project}/tests && pytest ." + CIBW_TEST_COMMAND: "pytest {project}/tests" # CIBW_TEST_SKIP: "*-win_arm64 *-musllinux_aarch64" with: package-dir: ./ @@ -77,20 +84,20 @@ jobs: name: faster-coco-eval-${{ matrix.os }}-${{ matrix.cibw_archs }}-${{ strategy.job-index }} path: ./wheelhouse/*.whl - build_sdist: - needs: test_source - name: Build source distribution - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 + # build_sdist: + # needs: test_source + # name: Build source distribution + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 - - name: Build sdist - run: make sdist + # - name: Build sdist + # run: make sdist - - uses: actions/upload-artifact@v4 - with: - name: sdist - path: ./dist/*.tar.gz + # - uses: actions/upload-artifact@v4 + # with: + # name: sdist + # path: ./dist/*.tar.gz # publish_test: # needs: [build_wheels, build_sdist]