From 3cad876a0a461c25c3d4a3145e9c181b1f0b013b Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Thu, 2 Nov 2023 20:42:15 +0000 Subject: [PATCH] ci: fix macOS build (#1692) The removal of the `distutils` module in Python 3.12 break Glib's build. --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 77de93f53..c9953cbfc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,11 @@ jobs: filter: tree:0 show-progress: false + - uses: actions/setup-python@v4 + with: + # Note: Python 3.12 removal of `distutils` breaks GLib's build. + python-version: '3.11' + - name: Homebrew install dependencies # Compared to the README, adds ccache for faster compilation times and removes sh5sum to prevent some conflict with coreutils, and gnu-getopt because we're not using kodev run: brew install ccache nasm ragel binutils coreutils libtool autoconf automake cmake makedepend lua@5.1 luarocks gettext pkg-config wget gnu-getopt grep bison