Skip to content

Commit

Permalink
fix build arm
Browse files Browse the repository at this point in the history
  • Loading branch information
MiXaiLL76 committed Oct 30, 2024
1 parent b59464f commit 0e82d13
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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: |
Expand All @@ -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: ./
Expand All @@ -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]
Expand Down

0 comments on commit 0e82d13

Please sign in to comment.