From 14cf2889d4497580d911fa28bc5e3773e8a5cc5c Mon Sep 17 00:00:00 2001 From: Robbie Harwood Date: Wed, 13 May 2020 14:50:00 -0400 Subject: [PATCH] Provide wheels for Linux Resolves: #200 --- .github/workflows/release.yml | 46 ++++++++++++++++++++++++- ci/{release-win.sh => release-wheel.sh} | 6 ++-- 2 files changed, 49 insertions(+), 3 deletions(-) rename ci/{release-win.sh => release-wheel.sh} (88%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bf0a7a40..d0d5fb03 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -63,6 +63,50 @@ ], }, + "wheels-linux": { + "runs-on": "ubuntu-latest", + "strategy": { + "matrix": { + "name": ["linux-wheel-3.8", "linux-wheel-3.7", + "linux-wheel-3.6"], + "include": [ + { + "name": "linux-wheel-3.8", + "pyenv": "3.8", + }, + { + "name": "linux-wheel-3.7", + "pyenv": "3.7", + }, + { + "name": "linux-wheel-3.6", + "pyenv": "3.6", + }, + ], + }, + }, + "steps": [ + { + "name": "Check out code", + "uses": "actions/checkout@v2", + }, + { + "name": "Install the right python", + "uses": "actions/setup-python@v2", + "with": { "python-version": "${{ matrix.pyenv }}" }, + }, + { + "name": "Create and upload Linux wheel", + "shell": "bash", + "run": "./ci/release-wheel.sh", + "env": { + "TWINE_USER": "rharwood", + "TWINE_PASSWORD": "${{ secrets.pypi_password }}", + }, + }, + ], + }, + "release-windows": { "runs-on": "windows-latest", "strategy": { @@ -98,7 +142,7 @@ { "name": "Create and upload Windows wheel", "shell": "bash", - "run": "./ci/release-win.sh", + "run": "./ci/release-wheel.sh", "env": { "OS_NAME": "windows", "TWINE_USER": "rharwood", diff --git a/ci/release-win.sh b/ci/release-wheel.sh similarity index 88% rename from ci/release-win.sh rename to ci/release-wheel.sh index 1e8aec4e..3855525c 100755 --- a/ci/release-win.sh +++ b/ci/release-wheel.sh @@ -5,8 +5,10 @@ source ./ci/lib-deploy.sh ./ci/build.sh -# Sigh, go find paths again -export PATH="/c/Program Files/MIT/Kerberos/bin:$PATH" +if [ "$OS_NAME" == "windows" ]; then + # Sigh, go find paths again + export PATH="/c/Program Files/MIT/Kerberos/bin:$PATH" +fi # build the wheel python -m pip install wheel