From ca6a8d953aa60a1cfdfa7bf1f0dad553b0d5c408 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 3 Jan 2026 19:55:26 +0000 Subject: [PATCH] ci: fix cmake compatibility for zydis build zydis 3.x bundles an old zydis-c with cmake_minimum_required < 3.5. Newer CMake versions reject this, so we set CMAKE_POLICY_VERSION_MINIMUM=3.5 as a workaround. --- .github/workflows/python-wheels.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-wheels.yaml b/.github/workflows/python-wheels.yaml index 2dd8d8b..461b9e2 100644 --- a/.github/workflows/python-wheels.yaml +++ b/.github/workflows/python-wheels.yaml @@ -77,6 +77,10 @@ jobs: target: aarch64 runs-on: ${{ (matrix.os == 'linux' && 'ubuntu') || matrix.os }}-latest + env: + # zydis 3.x bundles an old zydis-c with cmake_minimum_required < 3.5 + # newer CMake versions reject this, so we need to override the policy + CMAKE_POLICY_VERSION_MINIMUM: "3.5" steps: - uses: actions/checkout@v4 @@ -93,7 +97,7 @@ jobs: manylinux: ${{ matrix.manylinux }} args: --release --out dist --interpreter ${{ matrix.interpreter }} --manifest-path=./pylancelot/Cargo.toml rust-toolchain: stable - docker-options: -e CI + docker-options: -e CI -e CMAKE_POLICY_VERSION_MINIMUM - name: build pyflirt wheels uses: PyO3/maturin-action@v1 @@ -102,7 +106,7 @@ jobs: manylinux: ${{ matrix.manylinux }} args: --release --out dist --interpreter ${{ matrix.interpreter }} --manifest-path=./pyflirt/Cargo.toml rust-toolchain: stable - docker-options: -e CI + docker-options: -e CI -e CMAKE_POLICY_VERSION_MINIMUM - run: ${{ (matrix.os == 'windows' && 'dir') || 'ls -lh' }} dist/