From 284cb4069c97efe59b5caf3effb68c8b30e02b73 Mon Sep 17 00:00:00 2001 From: Alexander Petric Date: Fri, 4 Oct 2024 10:46:35 -0400 Subject: [PATCH] fix: windows.exe build with github workflow doesn't have openssl.dll bundled in (#4489) * fix windows worker gh action build workflow * use vcpck linked openssl lib for build --- .github/workflows/build_windows_worker.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_windows_worker.yml b/.github/workflows/build_windows_worker.yml index c9c4af3d5c..ed22a80dbb 100644 --- a/.github/workflows/build_windows_worker.yml +++ b/.github/workflows/build_windows_worker.yml @@ -38,9 +38,13 @@ jobs: ./backend/substitute_ee_code.sh --copy --dir ./windmill-ee-private - name: Cargo build windows - timeout-minutes: 60 + timeout-minutes: 90 run: | - $env:OPENSSL_DIR = "${Env:ProgramFiles}\OpenSSL" + vcpkg.exe install openssl-windows:x64-windows + vcpkg.exe install openssl:x64-windows-static + vcpkg.exe integrate install + $env:VCPKGRS_DYNAMIC=1 + $env:OPENSSL_DIR="${Env:VCPKG_INSTALLATION_ROOT}\installed\x64-windows-static" mkdir frontend/build && cd backend New-Item -Path . -Name "windmill-api/openapi-deref.yaml" -ItemType "File" -Force cargo build --release --features=enterprise,stripe,embedding,parquet,prometheus,openidconnect,cloud,jemalloc,tantivy