From 13719f79667f78195f8cf5e238813e313076f14d Mon Sep 17 00:00:00 2001
From: elecpower <neilh713@tpg.com.au>
Date: Sat, 4 Nov 2023 07:02:12 +1100
Subject: [PATCH] macos another install openssl try

---
 .github/workflows/macosx_cpn.yml | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/macosx_cpn.yml b/.github/workflows/macosx_cpn.yml
index 83e5b816fa1..8de066a8952 100644
--- a/.github/workflows/macosx_cpn.yml
+++ b/.github/workflows/macosx_cpn.yml
@@ -83,11 +83,8 @@ jobs:
         run:  brew install SDL2
 
       - name: Install openssl 1.1
-        run:  wget https://www.openssl.org/source/openssl-1.1.1w.tar.gz &&
-          tar xfv openssl-1.1.1w.tar.gz &&
-          cd openssl-1.1.1w &&
-          ./config &&
-          make install
+        run:  brew install openssl@1.1 && \
+              cp /usr/local/opt/openssl@1.1/lib/pkgconfig/*.pc /usr/local/lib/pkgconfig/
 
       - name: Build
         working-directory: ${{github.workspace}}