]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Ensure Python 3.10 used on MacOS until 3.11 supported
authorNick Porter <nick@portercomputing.co.uk>
Wed, 2 Nov 2022 11:15:56 +0000 (11:15 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 2 Nov 2022 11:40:47 +0000 (11:40 +0000)
There are deprecated functions which break the build with Python 3.11

.github/workflows/ci-macos.yml

index c71a1b9fdfa4df571221484343a213e79a551cb7..51e143e5441dc0fa6a5339e9de96cb4f87b72da8 100644 (file)
@@ -101,6 +101,7 @@ jobs:
           mruby \
           openssl@1.1 \
           openssl \
+          python@3.10 \
           talloc
         ln -s `brew --prefix`/opt/make/bin/gmake /usr/local/bin/make
         echo "#! /bin/sh"               >> /usr/local/bin/nproc
@@ -122,6 +123,13 @@ jobs:
       run: |
         echo "PATH=`brew --prefix`/opt/llvm@14/bin/:$PATH" >> $GITHUB_ENV
 
+    #
+    #  Ensure Python 3.10 is used
+    #
+    - name: Set path for Python 3.10
+      run: |
+        echo "PATH=`brew --prefix python@3.10`/bin/:$PATH" >> $GITHUB_ENV
+
     #
     #  Build using some alternative libraries
     #