From b9d4934b846227d17e5690adc47e465db94ad163 Mon Sep 17 00:00:00 2001 From: Enrico Minack Date: Sat, 27 Apr 2024 23:04:21 +0200 Subject: [PATCH] Publish macos with Python 3.8 on macos-12, not latest (#595) --- .github/workflows/publish.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e68a8ef7..88427fba 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -291,7 +291,7 @@ jobs: matrix: # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources include: - - os: macos-latest + - os: macos-13 os-label: macOS python: "3.8" - os: macos-latest @@ -303,12 +303,12 @@ jobs: - os: macos-11 os-label: macOS 11 python: "installed" + - os: macos-12 + os-label: macOS 12 + python: "installed" - os: macos-13 os-label: macOS 13 python: "installed" - - os: macos-14 - os-label: macOS 14 - python: "installed" steps: - name: Checkout @@ -320,6 +320,12 @@ jobs: with: python-version: ${{ matrix.python }} + - name: Setup Python + if: matrix.python == 'venv' + uses: actions/setup-python@v5 + with: + python-version: "3.10" + - name: Install virtualenv if: matrix.python == 'venv' run: python3 -m pip install virtualenv