From e252164f5d38ce593449db49f0906b22e5278563 Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Mon, 5 Feb 2024 14:35:48 -0500 Subject: [PATCH] Install OpenSSL for Windows Signed-off-by: Geoff Hutchison --- .github/workflows/build_cmake.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index c748b536..744e9275 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -51,7 +51,7 @@ jobs: os: windows-latest, cc: "cl", cxx: "cl", build_type: "Release", - cmake_flags: "", + cmake_flags: "-DOPENSSL_ROOT_DIR=D:\\a\\Tools\\OpenSSL\\Win_x64", build_flags: "-j 2", cpack_flags: "-G NSIS", } @@ -94,7 +94,7 @@ jobs: if: runner.os == 'Linux' run: | sudo apt-get -qq update - sudo apt-get -qq install ninja-build libeigen3-dev libboost-all-dev libglew-dev libxml2-dev + sudo apt-get -qq install ninja-build libeigen3-dev libboost-all-dev libglew-dev libxml2-dev sudo apt-get -qq install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5x11extras5-dev libqt5svg5-dev - name: Install Dependencies (macOS) if: runner.os == 'macOS' @@ -134,6 +134,17 @@ jobs: cached: ${{ steps.cache-qt.outputs.cache-hit }} version: ${{ env.QT_VERSION }} + - name: Install OpenSSL (Win64) + if: runner.os == 'Windows' + uses: jurplel/install-qt-action@v3 + with: + cache: True + tools: 'tools_opensslv3_x64' + version: ${{ env.QT_VERSION }} + host: 'windows' + target: 'desktop' + arch: 'win64_msvc2019_64' + - name: Configure MSVC Command Prompt if: runner.os == 'Windows' uses: ilammy/msvc-dev-cmd@v1 @@ -157,10 +168,10 @@ jobs: - name: Fix Mac plugins if: runner.os == 'macOS' - working-directory: ${{ runner.workspace }}/build/prefix/lib/openbabel + working-directory: ${{ runner.workspace }}/build/prefix/lib/openbabel run: | for plugin in *.so; do - for libpath in `otool -L ${plugin} | grep '/Users/runner/work' | awk '{print $1}'`; do + for libpath in `otool -L ${plugin} | grep '/Users/runner/work' | awk '{print $1}'`; do export lib=`echo $libpath | cut -d '/' -f 9`; echo "Fixing $plugin $lib $libpath" install_name_tool -change $libpath @executable_path/../Frameworks/$lib $plugin @@ -168,7 +179,7 @@ jobs: done cd .. # build/prefix/lib for plugin in libinchi.?.?.?.dylib; do - for libpath in `otool -L ${plugin} | grep '/Users/runner/work' | awk '{print $1}'`; do + for libpath in `otool -L ${plugin} | grep '/Users/runner/work' | awk '{print $1}'`; do export lib=`echo $libpath | cut -d '/' -f 9`; echo "Fixing $plugin $lib $libpath" install_name_tool -change $libpath @executable_path/../Frameworks/$lib $plugin @@ -299,4 +310,3 @@ jobs: rm -rf ./* || true rm -rf ./.??* || true ls -la ./ - \ No newline at end of file