From 5114680e9578f3afbfebcd6e5cce6dd517a5b78d Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 5 Feb 2025 21:21:44 -0600 Subject: [PATCH 1/2] Remove use of fetch-depth --- .github/workflows/release-python.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 06e61ec7..b216d462 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -46,7 +46,6 @@ jobs: - name: Checkout pymongoarrow uses: actions/checkout@v4 with: - fetch-depth: 0 persist-credentials: false - name: Set up python version @@ -95,7 +94,6 @@ jobs: steps: - uses: actions/checkout@v4 with: - fetch-depth: 0 persist-credentials: false - uses: actions/setup-python@v5 From 240fe91c9b9fb0f447cef5c22372c0eeaa95a812 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Wed, 5 Feb 2025 21:35:23 -0600 Subject: [PATCH 2/2] Fix aarch64 --- .github/workflows/release-python.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index b216d462..19248df0 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -31,7 +31,7 @@ jobs: # https://github.com/github/feedback/discussions/7835#discussioncomment-1769026 buildplat: - [ubuntu-20.04, manylinux_x86_64] - - [ubuntu-24.04-arm, manylinux_aarch64] + - [ubuntu-20.04, manylinux_aarch64] - [macos-14, macosx_*] - [windows-2019, win_amd64] python: ["cp39", "cp310", "cp311", "cp312", "cp313"] @@ -60,6 +60,16 @@ jobs: cache-dependency-path: 'bindings/python/pyproject.toml' allow-prereleases: true + - name: Set up QEMU + if: matrix.buildplat[1] == 'manylinux_aarch64' + uses: docker/setup-qemu-action@v3 + with: + # setup-qemu-action by default uses `tonistiigi/binfmt:latest` image, + # which is out of date. This causes seg faults during build. + # Here we manually fix the version. + image: tonistiigi/binfmt:qemu-v8.1.5 + platforms: arm64 + - name: Install pkg-config on MacOS if: runner.os == 'macOS' run: brew install pkg-config