-
Notifications
You must be signed in to change notification settings - Fork 15
59 lines (53 loc) · 1.56 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Python Wheels
on: [push, pull_request]
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
jobs:
build_wheels:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
buildplat: ["win_amd64", "win32"]
python: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"]
steps:
- uses: actions/checkout@v2
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat }}
CIBW_TEST_COMMAND: "python -c \"import winkerberos;print(winkerberos.__version__)\""
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.python }}-${{ matrix.buildplat }}
path: ./wheelhouse/*.whl
make_sdist:
name: Make SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build SDist
run: |
pip install check-manifest
check-manifest -v
python setup.py sdist --formats=zip
- uses: actions/upload-artifact@v2
with:
name: "sdist"
path: dist/*.zip
collect_wheels:
runs-on: ubuntu-latest
needs: [build_wheels, make_sdist]
name: Download Wheels
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v2
- name: Flatten directory
run: |
find . -mindepth 2 -type f -exec mv {} . \;
find . -type d -empty -delete
- uses: actions/upload-artifact@v2
with:
name: all-dist
path: "./*"