diff --git a/.github/actions/install/openssl/action.yml b/.github/actions/install/openssl/action.yml index 1f94304f4..256252370 100644 --- a/.github/actions/install/openssl/action.yml +++ b/.github/actions/install/openssl/action.yml @@ -8,14 +8,27 @@ inputs: runs: using: composite steps: + - uses: ilammy/setup-nasm@v1 - run: | cd /tmp wget https://github.com/openssl/openssl/archive/refs/tags/${{ inputs.version }}.tar.gz tar -zxf /tmp/${{ inputs.version }}.tar.gz cd openssl-${{ inputs.version }} + shell: bash + - if: runner.os == Windows + shell: cmd + run: | + %comspec% /k "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" + perl Configure VC-WIN64A + nmake + nmake install + - if: runner.os == Linux + shell: bash + run: | ./config --prefix=/tmp --libdir=lib make -j $(nproc) sudo make -j $(nproc) install_sw + - shell: bash + run: | echo "OPENSSL_ROOT_DIR=/tmp" >> "$GITHUB_ENV" echo "OpenSSL_ROOT=/tmp" >> "$GITHUB_ENV" - shell: bash diff --git a/.github/workflows/cross-platform.yml b/.github/workflows/cross-platform.yml index 5a1211ea8..17628d401 100644 --- a/.github/workflows/cross-platform.yml +++ b/.github/workflows/cross-platform.yml @@ -13,8 +13,8 @@ jobs: os: [macos-latest, windows-latest, ubuntu-latest] steps: - - if: matrix.os == 'windows-latest' - run: choco install openssl + - if: matrix.os != 'macos-latest' + use: ./.github/actions/install/openssl - if: matrix.os == 'macos-latest' run: sudo cp /usr/local/opt/openssl@1.1/lib/pkgconfig/*.pc /usr/local/lib/pkgconfig/