From 37e3094979214c266013734a2586c9353f120aa5 Mon Sep 17 00:00:00 2001 From: George Waters Date: Fri, 12 Apr 2024 13:35:58 -0400 Subject: [PATCH] Only install universal2 plugin on macOS runner --- .github/actions/setup-poetry/action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-poetry/action.yml b/.github/actions/setup-poetry/action.yml index 540c95d..d264a32 100644 --- a/.github/actions/setup-poetry/action.yml +++ b/.github/actions/setup-poetry/action.yml @@ -12,4 +12,7 @@ runs: pipx inject poetry poetry-plugin-export==1.7.1 # Handle paths correctly whether on windows or otherwise pipx inject poetry "$(python -c "import pathlib; print( str(pathlib.Path.cwd() / 'poetry-plugins' / 'poetry-plugin-pin-build') )")" - pipx inject poetry "$(python -c "import pathlib; print( str(pathlib.Path.cwd() / 'poetry-plugins' / 'poetry-plugin-universal2-wheel') )")" + - name: Install macOS plugin + if: runner.os == 'macOS' + shell: bash + run: pipx inject poetry "$(python -c "import pathlib; print( str(pathlib.Path.cwd() / 'poetry-plugins' / 'poetry-plugin-universal2-wheel') )")"