|
6 | 6 | pull_request: null
|
7 | 7 |
|
8 | 8 | jobs:
|
9 |
| - linux: |
| 9 | +# linux: |
| 10 | +# runs-on: ubuntu-latest |
| 11 | +# strategy: |
| 12 | +# fail-fast: false |
| 13 | +# matrix: |
| 14 | +# name: |
| 15 | +# - debian-stable |
| 16 | +# - debian-heimdal |
| 17 | +# - centos-8 |
| 18 | +# - fedora-latest |
| 19 | +# include: |
| 20 | +# - name: debian-stable |
| 21 | +# distro: debian:stable |
| 22 | +# - name: debian-heimdal |
| 23 | +# distro: debian:stable |
| 24 | +# krb5_ver: heimdal |
| 25 | +# - name: centos-8 |
| 26 | +# distro: centos:8 |
| 27 | +# - name: fedora-latest |
| 28 | +# distro: fedora:latest |
| 29 | +# flake: 'yes' |
| 30 | + |
| 31 | +# steps: |
| 32 | +# - name: Check out code |
| 33 | +# uses: actions/checkout@v2 |
| 34 | + |
| 35 | +# - name: Build and test gssapi |
| 36 | +# run: ./ci/run-on-linux.sh ./ci/build.sh |
| 37 | +# env: |
| 38 | +# DISTRO: ${{ matrix.distro }} |
| 39 | +# KRB5_VER: ${{ matrix.krb5_ver }} |
| 40 | +# FLAKE: ${{ matrix.flake }} |
| 41 | + |
| 42 | +# windows: |
| 43 | +# runs-on: windows-latest |
| 44 | +# strategy: |
| 45 | +# fail-fast: false |
| 46 | +# matrix: |
| 47 | +# name: |
| 48 | +# - win-py-3.10 |
| 49 | +# - win-py-3.9 |
| 50 | +# - win-py-3.8 |
| 51 | +# - win-py-3.7 |
| 52 | +# - win-py-3.6 |
| 53 | +# arch: |
| 54 | +# - x64 |
| 55 | +# - x86 |
| 56 | +# include: |
| 57 | +# - name: win-py-3.10 |
| 58 | +# pyenv: '3.10' |
| 59 | +# - name: win-py-3.9 |
| 60 | +# pyenv: '3.9' |
| 61 | +# - name: win-py-3.8 |
| 62 | +# pyenv: '3.8' |
| 63 | +# - name: win-py-3.7 |
| 64 | +# pyenv: '3.7' |
| 65 | +# - name: win-py-3.6 |
| 66 | +# pyenv: '3.6' |
| 67 | + |
| 68 | +# steps: |
| 69 | +# - name: Check out code |
| 70 | +# uses: actions/checkout@v2 |
| 71 | + |
| 72 | +# - name: Install the right python |
| 73 | +# uses: actions/setup-python@v2 |
| 74 | +# with: |
| 75 | +# python-version: ${{ matrix.pyenv }} |
| 76 | +# architecture: ${{ matrix.arch }} |
| 77 | + |
| 78 | +# - name: Build and test gssapi |
| 79 | +# shell: bash |
| 80 | +# run: ./ci/build.sh |
| 81 | +# env: |
| 82 | +# OS_NAME: windows |
| 83 | + |
| 84 | +# macos-heimdal: |
| 85 | +# runs-on: macos-latest |
| 86 | +# steps: |
| 87 | +# - name: Check out code |
| 88 | +# uses: actions/checkout@v2 |
| 89 | + |
| 90 | +# - name: Build and test gssapi |
| 91 | +# run: ./ci/build.sh |
| 92 | +# env: |
| 93 | +# KRB5_VER: heimdal |
| 94 | + |
| 95 | + # FIXME: Remove once validated that it works |
| 96 | + sdist: |
10 | 97 | runs-on: ubuntu-latest
|
11 |
| - strategy: |
12 |
| - fail-fast: false |
13 |
| - matrix: |
14 |
| - name: |
15 |
| - - debian-stable |
16 |
| - - debian-heimdal |
17 |
| - - centos-8 |
18 |
| - - fedora-latest |
19 |
| - include: |
20 |
| - - name: debian-stable |
21 |
| - distro: debian:stable |
22 |
| - - name: debian-heimdal |
23 |
| - distro: debian:stable |
24 |
| - krb5_ver: heimdal |
25 |
| - - name: centos-8 |
26 |
| - distro: centos:8 |
27 |
| - - name: fedora-latest |
28 |
| - distro: fedora:latest |
29 |
| - flake: 'yes' |
30 | 98 |
|
31 | 99 | steps:
|
32 | 100 | - name: Check out code
|
33 | 101 | uses: actions/checkout@v2
|
34 | 102 |
|
35 |
| - - name: Build and test gssapi |
36 |
| - run: ./ci/run-on-linux.sh ./ci/build.sh |
| 103 | + - name: Set things up |
| 104 | + run: ./ci/run-on-linux.sh ./ci/before-deploy.sh |
37 | 105 | env:
|
38 |
| - DISTRO: ${{ matrix.distro }} |
39 |
| - KRB5_VER: ${{ matrix.krb5_ver }} |
40 |
| - FLAKE: ${{ matrix.flake }} |
41 |
| - |
42 |
| - windows: |
43 |
| - runs-on: windows-latest |
44 |
| - strategy: |
45 |
| - fail-fast: false |
46 |
| - matrix: |
47 |
| - name: |
48 |
| - - win-py-3.10 |
49 |
| - - win-py-3.9 |
50 |
| - - win-py-3.8 |
51 |
| - - win-py-3.7 |
52 |
| - - win-py-3.6 |
53 |
| - arch: |
54 |
| - - x64 |
55 |
| - - x86 |
56 |
| - include: |
57 |
| - - name: win-py-3.10 |
58 |
| - pyenv: '3.10' |
59 |
| - - name: win-py-3.9 |
60 |
| - pyenv: '3.9' |
61 |
| - - name: win-py-3.8 |
62 |
| - pyenv: '3.8' |
63 |
| - - name: win-py-3.7 |
64 |
| - pyenv: '3.7' |
65 |
| - - name: win-py-3.6 |
66 |
| - pyenv: '3.6' |
67 |
| - |
68 |
| - steps: |
69 |
| - - name: Check out code |
70 |
| - uses: actions/checkout@v2 |
| 106 | + DISTRO: fedora:latest |
71 | 107 |
|
72 |
| - - name: Install the right python |
73 |
| - uses: actions/setup-python@v2 |
| 108 | + - name: Upload sdist |
| 109 | + uses: actions/upload-artifact@v2 |
74 | 110 | with:
|
75 |
| - python-version: ${{ matrix.pyenv }} |
76 |
| - architecture: ${{ matrix.arch }} |
77 |
| - |
78 |
| - - name: Build and test gssapi |
79 |
| - shell: bash |
80 |
| - run: ./ci/build.sh |
81 |
| - env: |
82 |
| - OS_NAME: windows |
83 |
| - |
84 |
| - macos-heimdal: |
85 |
| - runs-on: macos-latest |
86 |
| - steps: |
87 |
| - - name: Check out code |
88 |
| - uses: actions/checkout@v2 |
| 111 | + path: ./dist/*.whl |
| 112 | + name: artifact |
89 | 113 |
|
90 |
| - - name: Build and test gssapi |
91 |
| - run: ./ci/build.sh |
92 |
| - env: |
93 |
| - KRB5_VER: heimdal |
| 114 | + - name: Upload tagged build artifact |
| 115 | + uses: actions/upload-artifact@v2 |
| 116 | + with: |
| 117 | + path: ./tag_build/* |
| 118 | + name: tag_build |
94 | 119 |
|
95 |
| - # FIXME: Remove once validated that it works |
96 | 120 | wheel-windows:
|
| 121 | + needs: |
| 122 | + - sdist |
| 123 | + |
97 | 124 | runs-on: windows-latest
|
98 | 125 | strategy:
|
99 | 126 | matrix:
|
@@ -122,19 +149,29 @@ jobs:
|
122 | 149 | - name: Check out code
|
123 | 150 | uses: actions/checkout@v2
|
124 | 151 |
|
125 |
| - - name: build wheel |
| 152 | + - name: Set up environment |
| 153 | + shell: bash |
| 154 | + run: ./ci/build.sh |
| 155 | + env: |
| 156 | + OS_NAME: windows |
| 157 | + |
| 158 | + - name: Build wheel |
126 | 159 |
|
127 | 160 | env:
|
128 | 161 | CIBW_ARCHS: all
|
129 | 162 | CIBW_BUILD: ${{ matrix.pyenv }}-${{ matrix.arch }}
|
130 | 163 | CIBW_BUILD_VERBOSITY: 1
|
131 | 164 |
|
132 |
| - - uses: actions/upload-artifact@v2 |
| 165 | + - name: Upload wheel |
| 166 | + uses: actions/upload-artifact@v2 |
133 | 167 | with:
|
134 | 168 | path: ./wheelhouse/*.whl
|
135 | 169 | name: artifact
|
136 | 170 |
|
137 | 171 | wheel-macos:
|
| 172 | + needs: |
| 173 | + - sdist |
| 174 | + |
138 | 175 | runs-on: macos-10.15
|
139 | 176 |
|
140 | 177 | strategy:
|
@@ -166,42 +203,53 @@ jobs:
|
166 | 203 | arch: arm64
|
167 | 204 |
|
168 | 205 | steps:
|
169 |
| - - name: Check out code |
170 |
| - uses: actions/checkout@v2 |
| 206 | + - name: Download sdist |
| 207 | + uses: actions/download-artifact@v2 |
| 208 | + with: |
| 209 | + name: artifact |
| 210 | + path: ./ |
| 211 | + |
| 212 | + - name: Extract sdist |
| 213 | + run: | |
| 214 | + tar xf gssapi-*.tar.gz |
| 215 | + mv gssapi-*/* . |
| 216 | + rm -r gssapi-*/ |
| 217 | + rm gssapi-*.tar.gz |
171 | 218 |
|
172 |
| - - name: build wheel |
| 219 | + - name: Build wheel |
173 | 220 |
|
174 | 221 | env:
|
175 | 222 | CIBW_ARCHS: all
|
176 | 223 | CIBW_TEST_SKIP: '*_arm64'
|
177 | 224 | CIBW_BUILD: ${{ matrix.pyenv }}-macosx_${{ matrix.arch }}
|
178 | 225 | CIBW_BUILD_VERBOSITY: 1
|
179 | 226 |
|
180 |
| - - uses: actions/upload-artifact@v2 |
| 227 | + - name: Upload wheel |
| 228 | + uses: actions/upload-artifact@v2 |
181 | 229 | with:
|
182 | 230 | path: ./wheelhouse/*.whl
|
183 | 231 | name: artifact
|
184 | 232 |
|
185 |
| - release-linux: |
| 233 | + release: |
186 | 234 | needs:
|
187 | 235 | - wheel-windows
|
188 | 236 | - wheel-macos
|
189 | 237 |
|
190 | 238 | runs-on: ubuntu-latest
|
191 | 239 |
|
192 | 240 | steps:
|
193 |
| - - name: Check out code |
194 |
| - uses: actions/checkout@v2 |
195 |
| - |
196 |
| - - name: Set things up |
197 |
| - run: ./ci/run-on-linux.sh ./ci/before-deploy.sh |
198 |
| - env: |
199 |
| - DISTRO: fedora:latest |
200 |
| - |
201 |
| - - name: Download wheels |
| 241 | + - name: Download sdist and wheels |
202 | 242 | uses: actions/download-artifact@v2
|
203 | 243 | with:
|
204 | 244 | name: artifact
|
205 | 245 | path: ./dist
|
206 | 246 |
|
207 |
| - - run: ls -al /dist |
| 247 | + - name: Download tagged build artifact |
| 248 | + uses: actions/download-artifact@v2 |
| 249 | + with: |
| 250 | + name: tag_build |
| 251 | + path: ./tag_build |
| 252 | + |
| 253 | + - run: | |
| 254 | + ls -al ./dist |
| 255 | + ls -al ./tag_build |
0 commit comments