From f82431094aefffa47ee5e944547ca24772d55fc4 Mon Sep 17 00:00:00 2001 From: Roy Shilkrot Date: Wed, 13 Nov 2024 08:31:27 -0500 Subject: [PATCH] Add skip configuration for musllinux wheels and improve fetch content timestamp in CMake --- .github/workflows/build.yaml | 3 ++- cmake/BuildWhispercpp.cmake | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1350e24..026a992 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -42,6 +42,7 @@ jobs: CIBW_ARCHS_MACOS: "universal2" CIBW_ARCHS_WINDOWS: "AMD64" CIBW_ARCHS_LINUX: "x86_64" + CIBW_SKIP: "cp3?-musllinux_*" CIBW_BUILD_VERBOSITY: 1 run: | python -m cibuildwheel --output-dir wheelhouse @@ -54,6 +55,6 @@ jobs: - name: Upload wheel uses: actions/upload-artifact@v4 with: - name: wheels-${{ matrix.os }} + name: wheels-${{ matrix.os }}-${{ matrix.acceleration }} path: | wheelhouse/*.whl diff --git a/cmake/BuildWhispercpp.cmake b/cmake/BuildWhispercpp.cmake index 98b042f..3719a30 100644 --- a/cmake/BuildWhispercpp.cmake +++ b/cmake/BuildWhispercpp.cmake @@ -31,6 +31,7 @@ if(APPLE) # Use unique names for each architecture's fetch FetchContent_Declare( whispercpp_fetch_${MACOS_ARCH} + DOWNLOAD_EXTRACT_TIMESTAMP TRUE URL ${WHISPER_CPP_URL} URL_HASH SHA256=${WHISPER_CPP_HASH}) FetchContent_MakeAvailable(whispercpp_fetch_${MACOS_ARCH})