Repository navigation
Fix OpenSSL 3.6 compatibility and update gost-engine NID handling #157
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI (windows) | |
| on: [push, pull_request] | |
| jobs: | |
| msvc-openssl: | |
| runs-on: windows-latest | |
| outputs: | |
| openssl-head: ${{ steps.openssl.outputs.head }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/checkout@v2 | |
| with: | |
| repository: openssl/openssl | |
| path: openssl | |
| ref: openssl-3.6 | |
| fetch-depth: 0 | |
| - run: echo "::set-output name=head::$(git -C openssl describe --always --long)" | |
| id: openssl | |
| - uses: actions/cache@v4 | |
| id: cache | |
| with: | |
| path: openssl/_dest | |
| key: ${{ runner.os }}-openssl-${{ steps.openssl.outputs.head }} | |
| - name: Apply patches | |
| run: | | |
| git apply patches/openssl-tls1.3.patch | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| - name: Build OpenSSL | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| working-directory: openssl | |
| run: | | |
| perl Configure no-makedepend no-tests no-asm VC-WIN64A | |
| perl configdata.pm --dump | |
| nmake /S build_libs build_programs | |
| nmake /S install_sw DESTDIR=_dest | |
| msvc-engine: | |
| needs: msvc-openssl | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| submodules: true | |
| - uses: actions/cache@v4 | |
| with: | |
| path: openssl/_dest | |
| key: ${{ runner.os }}-openssl-${{ needs.msvc-openssl.outputs.openssl-head }} | |
| - run: cmake -DOPENSSL_ROOT_DIR="openssl\_dest\Program Files\OpenSSL" -DOPENSSL_ENGINES_DIR=bin . | |
| - run: cmake --build . | |
| - name: Run tests | |
| run: | | |
| $env:OPENSSL_ENGINES = "$pwd\bin\Debug" | |
| $env:OPENSSL_MODULES = "$pwd\bin\Debug" | |
| Copy-Item -Path "$pwd\openssl\_dest\Program Files\OpenSSL\bin\*.dll" -Destination "$pwd\bin\Debug" | |
| ctest -C Debug --output-on-failure |