Skip to content

Commit

Permalink
Remove CI on unsupported OpenSSL versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrojnar committed Mar 4, 2024
1 parent 5064983 commit 5633d4e
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,9 @@ jobs:
matrix:
include:
- arch: 'x86'
openssl_version: '1.1.1'
choco_param: '--x86'
build_for: 'WIN32'
openssl_dir: 'C:\Program Files (x86)\OpenSSL-Win32'
- arch: 'x64'
openssl_version: '1.1.1'
build_for: 'WIN64'
# Use OpenSSL from PostgreSQL, because Chocolatey is broken
#openssl_dir: 'C:\Program Files\OpenSSL-Win64'
openssl_dir: 'C:\Program Files\PostgreSQL\14'
- arch: 'x86'
openssl_version: '3.0'
build_for: 'WIN32'
openssl_dir: 'C:\vcpkg\packages\openssl_x86-windows'
- arch: 'x64'
openssl_version: '3.0'
build_for: 'WIN64'
openssl_dir: 'C:\vcpkg\packages\openssl_x64-windows'

Expand All @@ -93,25 +80,17 @@ jobs:
- uses: actions/checkout@v3

- name: Cache the vcpkg archives
if: matrix.openssl_version == '3.0'
uses: actions/cache@v3
with:
path: C:/Users/runneradmin/AppData/Local/vcpkg/archives
key: ${{matrix.arch}}-${{matrix.openssl_version}}
key: ${{matrix.arch}}

- name: Configure Visual Studio
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{matrix.arch}}

- name: Install OpenSSL 1.1.1 with Chocolatey
if: matrix.openssl_version == '1.1.1'
run: |
choco install ${{matrix.choco_param}} -y openssl
echo "${{matrix.openssl_dir}}\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install OpenSSL 3.0 with VCPKG
if: matrix.openssl_version == '3.0'
- name: Install OpenSSL with VCPKG
run: |
vcpkg install --triplet=${{matrix.arch}}-windows openssl
echo "${{matrix.openssl_dir}}\tools\openssl" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
Expand All @@ -127,5 +106,5 @@ jobs:
- name: Upload the DLLs
uses: actions/upload-artifact@v3
with:
name: libp11-${{env.version}}-openssl-${{matrix.openssl_version}}-${{matrix.arch}}
name: libp11-${{env.version}}-openssl-${{matrix.arch}}
path: ${{github.workspace}}/src/*.dll

0 comments on commit 5633d4e

Please sign in to comment.