Skip to content

Commit 14cf288

Browse files
Provide wheels for Linux
Resolves: pythongssapi#200
1 parent 99ee548 commit 14cf288

File tree

2 files changed

+49
-3
lines changed

2 files changed

+49
-3
lines changed

.github/workflows/release.yml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,50 @@
6363
],
6464
},
6565

66+
"wheels-linux": {
67+
"runs-on": "ubuntu-latest",
68+
"strategy": {
69+
"matrix": {
70+
"name": ["linux-wheel-3.8", "linux-wheel-3.7",
71+
"linux-wheel-3.6"],
72+
"include": [
73+
{
74+
"name": "linux-wheel-3.8",
75+
"pyenv": "3.8",
76+
},
77+
{
78+
"name": "linux-wheel-3.7",
79+
"pyenv": "3.7",
80+
},
81+
{
82+
"name": "linux-wheel-3.6",
83+
"pyenv": "3.6",
84+
},
85+
],
86+
},
87+
},
88+
"steps": [
89+
{
90+
"name": "Check out code",
91+
"uses": "actions/checkout@v2",
92+
},
93+
{
94+
"name": "Install the right python",
95+
"uses": "actions/setup-python@v2",
96+
"with": { "python-version": "${{ matrix.pyenv }}" },
97+
},
98+
{
99+
"name": "Create and upload Linux wheel",
100+
"shell": "bash",
101+
"run": "./ci/release-wheel.sh",
102+
"env": {
103+
"TWINE_USER": "rharwood",
104+
"TWINE_PASSWORD": "${{ secrets.pypi_password }}",
105+
},
106+
},
107+
],
108+
},
109+
66110
"release-windows": {
67111
"runs-on": "windows-latest",
68112
"strategy": {
@@ -98,7 +142,7 @@
98142
{
99143
"name": "Create and upload Windows wheel",
100144
"shell": "bash",
101-
"run": "./ci/release-win.sh",
145+
"run": "./ci/release-wheel.sh",
102146
"env": {
103147
"OS_NAME": "windows",
104148
"TWINE_USER": "rharwood",

ci/release-win.sh renamed to ci/release-wheel.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ source ./ci/lib-deploy.sh
55

66
./ci/build.sh
77

8-
# Sigh, go find paths again
9-
export PATH="/c/Program Files/MIT/Kerberos/bin:$PATH"
8+
if [ "$OS_NAME" == "windows" ]; then
9+
# Sigh, go find paths again
10+
export PATH="/c/Program Files/MIT/Kerberos/bin:$PATH"
11+
fi
1012

1113
# build the wheel
1214
python -m pip install wheel

0 commit comments

Comments
 (0)