Skip to content

Commit

Permalink
Fix gh-actions on Mac Py 3.10.
Browse files Browse the repository at this point in the history
Do this by exporting `_PYTHON_HOST_PLATFORM="macosx-11-x86_64"` on macos-latest.
Strangely, this works.
See buildout/buildout#609 (comment)
  • Loading branch information
mauritsvanrees committed Jun 28, 2022
1 parent 273a0f8 commit 7bbb7f0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/run-buildout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ jobs:
- ubuntu-latest
- windows-latest
- macos-latest
exclude:
# MacOS on gh-actions cannot install MarkupSafe on Py 3.10, see https://github.com/plone/buildout.coredev/issues/799
- os: macos-latest
python-version: "3.10"
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -40,7 +36,13 @@ jobs:
key: eggs-${{ matrix.python-version }}-${{ runner.os }}-${{ hashFiles('versions*.cfg') }}
restore-keys: |
eggs-${{ matrix.python-version }}-${{ runner.os }}-
eggs-${{ matrix.python-version }}-
- name: Run buildout if Mac
if: matrix.os == 'macos-latest'
run: |
# MacOS on gh-actions cannot install MarkupSafe on Py 3.10, see https://github.com/plone/buildout.coredev/issues/799
export _PYTHON_HOST_PLATFORM="macosx-11-x86_64"
buildout buildout:git-clone-depth=1
- name: Run buildout
if: matrix.os != 'macos-latest'
run: |
buildout buildout:git-clone-depth=1

0 comments on commit 7bbb7f0

Please sign in to comment.