|
12 | 12 | jobs: |
13 | 13 | sdist: |
14 | 14 | name: "Build source package" |
15 | | - runs-on: ubuntu-20.04 |
| 15 | + runs-on: ubuntu-latest |
16 | 16 | steps: |
17 | | - - uses: actions/checkout@v2 |
| 17 | + - uses: actions/checkout@v3 |
18 | 18 | - uses: actions/setup-python@v2 |
19 | | - with: {python-version: "3.8"} |
| 19 | + with: {python-version: "3.9"} |
20 | 20 | - run: python setup.py sdist |
21 | 21 | - uses: actions/upload-artifact@v2 |
22 | 22 | with: {name: "dist", path: "dist"} |
23 | 23 |
|
24 | | - linux_wheels: |
25 | | - name: "Wheel: manylinux2014" |
26 | | - needs: [sdist] |
27 | | - runs-on: ubuntu-20.04 |
28 | | - steps: |
29 | | - - uses: actions/checkout@v2 |
30 | | - - uses: actions/download-artifact@v2 |
31 | | - with: {name: "dist", path: "sdist"} |
32 | | - - uses: "docker://quay.io/pypa/manylinux2014_x86_64:latest" |
33 | | - with: {entrypoint: "./.github/workflows/manylinux.sh"} |
34 | | - - uses: "docker://quay.io/pypa/manylinux2014_i686:latest" |
35 | | - with: {entrypoint: "./.github/workflows/manylinux.sh"} |
36 | | - - uses: actions/upload-artifact@v2 |
37 | | - with: {name: "dist", path: "dist"} |
38 | | - |
39 | | - other_wheels: |
40 | | - name: "Wheel: ${{matrix.sys.name}}-${{matrix.sys.pyarch}}-${{matrix.pyver}}" |
41 | | - needs: [sdist] |
| 24 | + cibuildwheel: |
| 25 | + name: "Wheels: ${{matrix.sys.name}}" |
42 | 26 | runs-on: ${{matrix.sys.os}} |
43 | 27 | strategy: |
44 | 28 | matrix: |
45 | 29 | sys: |
46 | | - - {os: "macos-10.15", name: "MacOS 10.15", pyarch: "x64"} |
47 | | - - {os: "windows-2019", name: "Windows 2019", pyarch: "x86"} |
48 | | - - {os: "windows-2019", name: "Windows 2019", pyarch: "x64"} |
49 | | - pyver: ["3.6"] |
| 30 | + - {os: "ubuntu-latest", name: "Linux", arches: "auto"} |
| 31 | + - {os: "macos-latest", name: "MacOS", arches: "x86_64 arm64 universal2"} |
| 32 | + - {os: "windows-latest", name: "Windows", arches: "auto"} |
50 | 33 | steps: |
51 | | - - uses: actions/checkout@v2 |
52 | | - - uses: actions/setup-python@v2 |
53 | | - with: {architecture: "${{matrix.sys.pyarch}}", python-version: "${{matrix.pyver}}"} |
54 | | - - uses: actions/download-artifact@v2 |
55 | | - with: {name: "dist", path: "sdist"} |
56 | | - - name: "Build" |
| 34 | + - uses: actions/checkout@v3 |
| 35 | + - uses: pypa/cibuildwheel@v2.8.0 |
| 36 | + env: |
| 37 | + CIBW_ARCHS: ${{matrix.sys.arches}} |
| 38 | + - name: "Check" |
57 | 39 | shell: bash |
58 | 40 | run: | |
59 | | - pip install --disable-pip-version-check -U wheel |
60 | | - pip wheel --disable-pip-version-check --build-option --py-limited-api=cp36 -w dist sdist/*.tar.gz |
61 | | - ls -l dist |
62 | | - - uses: actions/upload-artifact@v2 |
63 | | - with: {name: "dist", path: "dist"} |
| 41 | + ls -l |
| 42 | + ls -l wheelhouse |
| 43 | + - uses: actions/upload-artifact@v3 |
| 44 | + with: {name: "dist", path: "wheelhouse"} |
64 | 45 |
|
65 | 46 | publish: |
66 | 47 | name: "Publish" |
67 | | - runs-on: ubuntu-20.04 |
68 | | - needs: [linux_wheels, other_wheels] |
| 48 | + runs-on: ubuntu-latest |
| 49 | + needs: [sdist, cibuildwheel] |
69 | 50 | steps: |
70 | | - - uses: actions/checkout@v2 |
| 51 | + - uses: actions/checkout@v3 |
71 | 52 | - uses: actions/setup-python@v2 |
72 | | - with: {python-version: "3.8"} |
| 53 | + with: {python-version: "3.9"} |
73 | 54 | - uses: actions/download-artifact@v2 |
74 | 55 | with: {name: "dist", path: "dist"} |
75 | 56 | - name: "Prepare" |
|
96 | 77 | mkdir -p tmp |
97 | 78 | make -s shownote > tmp/note.md |
98 | 79 | cat tmp/note.md |
| 80 | + ls -l dist |
99 | 81 |
|
100 | 82 | - name: "Create release" |
101 | 83 | id: github_release |
|
0 commit comments