summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Cramer2024-05-07 19:31:00 +0000
committerDave Cramer2024-05-07 19:31:00 +0000
commitaafe0008ff2bff8a9d27f18d6bcf0fe879757a0e (patch)
tree758cd5d366cac36fa1dc0460dfbea948f86d36d3
parent2a1e07e1ce9f5fafd30ee4e81e3e5de16e62a961 (diff)
download win32openssl and build with it
-rw-r--r--.github/workflows/main.yml22
-rw-r--r--winbuild/MSProgram-Get.psm11
2 files changed, 20 insertions, 3 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index e7ce6ef..44aa844 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -68,7 +68,12 @@ jobs:
key: pkg-config-lite-0.28-1_bin-win32.zip
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1
-
+ - name: Cache Win32OpenSSL32 for Win32Compile
+ uses: actions/cache@v4
+ id: cacheWin32OpenSSL-3_3
+ with:
+ path: C:\OTHERBIN\openssl32
+ key: Win32OpenSSL-3_3_0.exe
- name: Cache winflexbison for Compile using msvc
uses: actions/cache@v4
id: cacheWinFlexBisonZip
@@ -84,6 +89,14 @@ jobs:
with:
retry-times: 5
url: https://zenlayer.dl.sourceforge.net/project/gnuwin32/diffutils/2.8.7-1/diffutils-2.8.7-1-bin.zip
+
+ - name: Download openssl32 for win32 compile
+ if: ${{steps.cacheWin32OpenSSL.outputs.cache-hit != 'true'}}
+ uses: suisei-cn/actions-download-file@v1.6.0
+ id: downloadWin32OpenSSL3_3_3
+ with:
+ retry-times: 5
+ url: https://slproweb.com/download/Win32OpenSSL-3_3_0.exe
- name: Download pkgconfiglite for Compile using msvc and meson
if: ${{steps.cachePkgConfigLiteZip.outputs.cache-hit != 'true'}}
@@ -135,6 +148,10 @@ jobs:
rem - man7.org/linux/man-pages/man1/printf.1.html
printf "C:\\OTHERBIN\\pkgconfiglite\\pkg-config-lite-0.28-1\\bin" >> %GITHUB_PATH%
+ - name: Install Win32OpenSSL
+ shell: cmd
+ run: Win32OpenSSL-3_3_0.exe /sp /silent /dir=c:\openssl32
+
# Choco Install winflexbison
# BUT the "crazy-max/ghaction-chocolatey@v2" "install pkgconfiglite" file download often times-out
- name: Extract winflexbison and add the winflexbison directory to the PATH for Compile using msvc
@@ -156,10 +173,11 @@ jobs:
- name: 'build postgresx86'
if: ${{steps.cachePostgres86.outputs.cache-hit != 'true'}}
run: |
- meson setup buildx86 --prefix=d:\postgresql86
+ meson setup buildx86 -Dopenssl=c:\openssl32 --prefix=d:\postgresql86
cd buildx86
ninja -v
ninja -v install
+ cp c:\openssl32\*.dll d:\postgresql86\bin
- name: 'setup msvc x64'
if: ${{steps.cachePostgres.outputs.cache-hit != 'true'}}
uses: TheMrMilchmann/setup-msvc-dev@v3
diff --git a/winbuild/MSProgram-Get.psm1 b/winbuild/MSProgram-Get.psm1
index 81926bc..2ea0610 100644
--- a/winbuild/MSProgram-Get.psm1
+++ b/winbuild/MSProgram-Get.psm1
@@ -275,7 +275,6 @@ function Find-Dumpbin
}
}
- Write-Host "Dumpbin=$dumpbinexe"
Set-Variable -Name dumpbinexe -Value $dumpbinexe -Scope 1
Set-Variable -Name addPath -Value $addPath -Scope 1
if ("$addPath" -ne "") {