From de96bb413da36316def7e9d70ee7df6dc5d71d3f Mon Sep 17 00:00:00 2001 From: Fuzzbawls Date: Tue, 18 Jun 2024 21:31:03 -0700 Subject: [PATCH] ga: Use python 3.10 on arm64 macos there is no arm64 python 3.8 cache for these runners, leading to a benign but ugly warning. --- .github/workflows/build-and-test.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index ce7eeda13063e..b3eb430a71afd 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -93,18 +93,21 @@ jobs: config: - name: Linux os: ubuntu-20.04 + python-version: '3.8' packages: python3-zmq qttools5-dev qtbase5-dev qttools5-dev-tools libqt5svg5-dev libqt5charts5-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libqrencode-dev libgmp-dev libsodium-dev cargo cc: gcc cxx: g++ - name: Linux-latest os: ubuntu-latest + python-version: '3.8' packages: python3-zmq qttools5-dev qtbase5-dev qttools5-dev-tools libqt5svg5-dev libqt5charts5-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libqrencode-dev libgmp-dev libsodium-dev cargo cc: gcc cxx: g++ - name: macOS os: macos-12 + python-version: '3.8' packages: llvm@13 autoconf automake berkeley-db@4 libtool boost@1.76 miniupnpc libnatpmp pkg-config qt@5 zmq libevent qrencode gmp libsodium rust boost_root: true cc: $(brew --prefix llvm@13)/bin/clang @@ -112,6 +115,7 @@ jobs: - name: macOS-latest os: macos-14 + python-version: '3.10' packages: llvm@14 autoconf automake berkeley-db@4 libtool boost@1.76 miniupnpc libnatpmp pkg-config qt@5 zmq libevent qrencode gmp libsodium rust boost_root: true cc: $(brew --prefix llvm@14)/bin/clang @@ -124,7 +128,7 @@ jobs: - name: Initialize Python uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: ${{ matrix.config.python-version }} - name: Setup Environment run: | @@ -146,6 +150,7 @@ jobs: run: | CC=${{ matrix.config.cc }} CXX=${{ matrix.config.cxx }} + PYTHON=$pythonLocation/bin/python${{ matrix.config.python-version }} if [[ ${{ matrix.config.os }} = macos* ]]; then if [ "${{ matrix.config.no_qt }}" = "true" ]; then export NO_QT=1 @@ -163,6 +168,7 @@ jobs: fi export CC export CXX + export PYTHON mkdir -p ${{ github.workspace }}/cmake-build-debug && cd ${{ github.workspace }}/cmake-build-debug cmake -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" ${{ github.workspace }} @@ -194,6 +200,7 @@ jobs: - name: x64-Linux id: Linux-x86_64-nodepends os: ubuntu-20.04 + python-version: '3.8' packages: python3-zmq qtbase5-dev qttools5-dev-tools libqt5svg5-dev libqt5charts5-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libnatpmp-dev libzmq3-dev libqrencode-dev libgmp-dev libsodium-dev cargo unit_tests: true functional_tests: true @@ -203,6 +210,7 @@ jobs: - name: x64-Linux-latest id: Linux-x86_64-nodepends-latest os: ubuntu-latest + python-version: '3.8' packages: python3-zmq qtbase5-dev qttools5-dev-tools libqt5svg5-dev libqt5charts5-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libnatpmp-dev libzmq3-dev libqrencode-dev libgmp-dev libsodium-dev cargo unit_tests: true functional_tests: true @@ -212,7 +220,8 @@ jobs: - name: x64-macOS id: macOS-nodepends os: macos-12 - packages: autoconf automake ccache berkeley-db@4 libtool boost@1.76 miniupnpc libnatpmp pkg-config libevent qrencode gmp libsodium rust librsvg + python-version: '3.8' + packages: autoconf automake ccache berkeley-db@4 libtool boost@1.76 miniupnpc libnatpmp pkg-config qt@5 zmq libevent qrencode gmp libsodium rust librsvg unit_tests: true functional_tests: true cc: clang @@ -222,6 +231,7 @@ jobs: - name: arm64-macOS-latest id: macOS-nodepends-latest os: macos-14 + python-version: '3.10' packages: autoconf automake ccache berkeley-db@4 libtool boost@1.76 miniupnpc libnatpmp pkg-config qt@5 zmq libevent qrencode gmp libsodium rust librsvg unit_tests: true functional_tests: true @@ -237,7 +247,7 @@ jobs: - name: Initialize Python uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: ${{ matrix.config.python-version }} - name: Setup Environment run: | @@ -262,6 +272,8 @@ jobs: # Add llvm-symbolizer directory to PATH. Needed to get symbolized stack traces from the sanitizers. PATH=$PATH:/usr/lib/llvm-6.0/bin/ export PATH + PYTHON=$pythonLocation/bin/python${{ matrix.config.python-version }} + export PYTHON if [[ ${{ matrix.config.os }} = macos* ]]; then CC=${{ matrix.config.cc }} @@ -352,28 +364,32 @@ jobs: - name: x64-Linux id: Linux-x86_64-nodepends-tests os: ubuntu-20.04 + python-version: '3.8' packages: python3-zmq libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libnatpmp-dev libzmq3-dev libqrencode-dev libgmp-dev libsodium-dev - name: x64-Linux-latest id: Linux-x86_64-nodepends-latest-tests os: ubuntu-latest + python-version: '3.8' packages: python3-zmq libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libnatpmp-dev libzmq3-dev libqrencode-dev libgmp-dev libsodium-dev - name: x64-macOS id: macOS-nodepends os: macos-12 + python-version: '3.8' packages: berkeley-db@4 boost@1.76 miniupnpc libnatpmp pkg-config zmq libevent qrencode gmp libsodium - name: arm64-macOS-latest id: macOS-nodepends-latest os: macos-14 + python-version: '3.10' packages: berkeley-db@4 boost@1.76 miniupnpc libnatpmp pkg-config zmq libevent qrencode gmp libsodium steps: - name: Initialize Python uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: ${{ matrix.config.python-version }} - name: Setup Environment run: |