From b4d9a22df8ed3b5355531c0aaa09258c745917f4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 10 Aug 2022 12:21:01 +0530 Subject: [PATCH] Install the same version of OpenSSL as used by python on brew based CI --- .github/workflows/ci.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.py b/.github/workflows/ci.py index ccc357a38..39f0eba2f 100644 --- a/.github/workflows/ci.py +++ b/.github/workflows/ci.py @@ -31,7 +31,11 @@ def install_deps(): sys.stdout.flush() if is_macos: items = (x.split()[1].strip('"') for x in open('Brewfile').readlines() if x.strip().startswith('brew ')) - run('brew', 'install', 'fish', 'openssl', *items) + openssl = 'openssl' + import ssl + if ssl.OPENSSL_VERSION_INFO[0] == 1: + openssl += '@1.1' + run('brew', 'install', 'fish', openssl, *items) else: run('sudo apt-get update') run('sudo apt-get install -y libgl1-mesa-dev libxi-dev libxrandr-dev libxinerama-dev ca-certificates'