From 1dea73b0387ba78cf3f7de2007057f5c5117da75 Mon Sep 17 00:00:00 2001
From: olszomal <Malgorzata.Olszowka@stunnel.org>
Date: Wed, 21 Feb 2024 13:46:32 +0100
Subject: [PATCH] Install python@3.8 on macOS required for the Github Actions
 CI

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

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3505af7..b214f7a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -107,6 +107,11 @@ jobs:
         sudo apt-get update
         sudo apt-get install -y libssl-dev libcurl4-openssl-dev faketime
 
+    - name: Install brew dependencies (macOS)
+      if: runner.os == 'macOS'
+      run: |
+        brew install python@3.8
+
     - name: Install Xcode (macOS)
       if: runner.os == 'macOS'
       uses: maxim-lobanov/setup-xcode@v1
@@ -140,8 +145,8 @@ jobs:
       working-directory: ${{github.workspace}}/build
       if: runner.os == 'macOS'
       run: |
-        python3 --version
-        python3 ./Testing/server_http.py --port 19254
+        python3.8 --version
+        python3.8 ./Testing/server_http.py --port 19254
         while test ! -s ./Testing/logs/port.log; do sleep 1; done
 
     - name: Start HTTP server (Windows)