fix(duckdb): preserve static CRT in Windows CI

This commit is contained in:
t8y2 2026-08-04 16:03:45 +08:00
parent cd5c222f95
commit 11b120a55c
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View File

@ -457,6 +457,9 @@ jobs:
- name: Build DuckDB native driver
shell: bash
run: |
if [ "${{ runner.os }}" = "Windows" ]; then
export RUSTFLAGS="${RUSTFLAGS:+$RUSTFLAGS }-C target-feature=+crt-static"
fi
if [ -n "${{ matrix.manylinux_image }}" ]; then
docker run --rm \
--user "$(id -u):$(id -g)" \

View File

@ -156,6 +156,7 @@ jobs:
env:
CARGO_INCREMENTAL: "0"
CARGO_TARGET_DIR: ${{ github.workspace }}/target/duckdb-driver
RUSTFLAGS: -C debuginfo=line-tables-only -C target-feature=+crt-static
RUSTC_WRAPPER: sccache
steps:
- uses: actions/checkout@v5