From 13df2dd9c3199045d7820e08405e3210603c9d16 Mon Sep 17 00:00:00 2001 From: Jaap Aarts Date: Mon, 16 Sep 2024 16:51:58 +0200 Subject: [PATCH] Make sure vcpkg uses the rtools toolchain instead of windows mingw vcpkg doesnt detect the rtools mingw toolchain, which causes issues in the faiss extension. --- .github/workflows/_extension_distribution.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/_extension_distribution.yml b/.github/workflows/_extension_distribution.yml index 3854bf0..31af060 100644 --- a/.github/workflows/_extension_distribution.yml +++ b/.github/workflows/_extension_distribution.yml @@ -535,6 +535,13 @@ jobs: update-rtools: true rtools-version: '42' # linker bug in 43 + - name: setup rtools gcc for vcpkg + if: matrix.duckdb_arch == 'windows_amd64_rtools' + run: | + cp C:/rtools42/x86_64-w64-mingw32.static.posix/bin/gcc.exe C:/rtools42/x86_64-w64-mingw32.static.posix/bin/x86_64-w64-mingw32-gcc.exe + cp C:/rtools42/x86_64-w64-mingw32.static.posix/bin/g++.exe C:/rtools42/x86_64-w64-mingw32.static.posix/bin/x86_64-w64-mingw32-g++.exe + cp C:/rtools42/x86_64-w64-mingw32.static.posix/bin/gfortran.exe C:/rtools42/x86_64-w64-mingw32.static.posix/bin/x86_64-w64-mingw32-gfortran.exe + - uses: actions/checkout@v3 name: Checkout Extension CI tools if: ${{inputs.override_ci_tools_ref != ''}}