Skip to content

Commit a676eb9

Browse files
isarandiclaude
andcommitted
Fix Windows libdeflate build: set prefix at configure time
Set CMAKE_INSTALL_PREFIX at configure time and disable gzip programs to avoid hard-link failure during install on Windows CI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5e76568 commit a676eb9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ jobs:
4343
curl -L -o libdeflate.tar.gz https://github.com/ebiggers/libdeflate/archive/refs/tags/v1.22.tar.gz &&
4444
tar xzf libdeflate.tar.gz &&
4545
cd libdeflate-1.22 &&
46-
cmake -B build -DCMAKE_BUILD_TYPE=Release &&
46+
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:/libdeflate -DLIBDEFLATE_BUILD_GZIP=OFF &&
4747
cmake --build build --config Release --parallel &&
48-
cmake --install build --prefix C:/libdeflate
48+
cmake --install build --config Release
4949
CIBW_ENVIRONMENT_WINDOWS: LIBDEFLATE_DIR=C:/libdeflate
5050

5151
- uses: actions/upload-artifact@v4

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ jobs:
4242
curl -L -o libdeflate.tar.gz https://github.com/ebiggers/libdeflate/archive/refs/tags/v1.22.tar.gz
4343
tar xzf libdeflate.tar.gz
4444
cd libdeflate-1.22
45-
cmake -B build -DCMAKE_BUILD_TYPE=Release
45+
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:/libdeflate -DLIBDEFLATE_BUILD_GZIP=OFF
4646
cmake --build build --config Release --parallel
47-
cmake --install build --prefix "C:/libdeflate"
47+
cmake --install build --config Release
4848
echo "LIBDEFLATE_DIR=C:/libdeflate" >> "$GITHUB_ENV"
4949
5050
- name: Install dependencies

0 commit comments

Comments
 (0)