|
16 | 16 | types: |
17 | 17 | - published |
18 | 18 |
|
| 19 | +env: |
| 20 | + PIP_BREAK_SYSTEM_PACKAGES: 1 |
| 21 | + |
19 | 22 | concurrency: |
20 | 23 | group: ${{ github.workflow }}-${{ github.ref }} |
21 | 24 | cancel-in-progress: true |
22 | 25 |
|
23 | 26 | jobs: |
24 | 27 | build_wheels: |
25 | 28 | strategy: |
| 29 | + fail-fast: false |
26 | 30 | matrix: |
27 | 31 | os: ["ubuntu-latest", "macos-latest", "windows-latest"] |
28 | 32 |
|
29 | 33 | runs-on: ${{ matrix.os }} |
30 | 34 | steps: |
31 | | - - uses: actions/checkout@v3 |
| 35 | + - uses: actions/checkout@v4 |
32 | 36 | - run: make ci_requirements |
33 | 37 | - name: Set up QEMU # Needed to build aarch64 wheels |
34 | 38 | if: runner.os == 'Linux' |
35 | | - uses: docker/setup-qemu-action@v2 |
| 39 | + uses: docker/setup-qemu-action@v3 |
36 | 40 | with: |
37 | 41 | platforms: all |
38 | | - - uses: pypa/cibuildwheel@v2.16.5 |
39 | | - - uses: actions/upload-artifact@v3 |
| 42 | + - uses: pypa/cibuildwheel@v2.22.0 |
| 43 | + - uses: actions/upload-artifact@v4 |
40 | 44 | with: |
| 45 | + name: artifact-wheel-${{ matrix.os }} |
41 | 46 | path: wheelhouse/*.whl |
42 | 47 |
|
43 | 48 | make_sdist: |
44 | 49 | runs-on: "ubuntu-latest" |
45 | 50 | steps: |
46 | | - - uses: actions/checkout@v3 |
| 51 | + - uses: actions/checkout@v4 |
47 | 52 | - run: | |
48 | 53 | make ci_requirements |
49 | 54 | python -m build --no-isolation --sdist |
50 | | - - uses: actions/upload-artifact@v3 |
| 55 | + - uses: actions/upload-artifact@v4 |
51 | 56 | with: |
| 57 | + name: artifact-sdist |
52 | 58 | path: dist/*.tar.gz |
53 | 59 |
|
54 | | - upload_all: |
| 60 | + merge: |
| 61 | + runs-on: ubuntu-latest |
55 | 62 | needs: [build_wheels, make_sdist] |
| 63 | + steps: |
| 64 | + - name: Merge Artifacts |
| 65 | + uses: actions/upload-artifact/merge@v4 |
| 66 | + with: |
| 67 | + name: artifact |
| 68 | + pattern: artifact-* |
| 69 | + delete-merged: true |
| 70 | + |
| 71 | + upload_all: |
| 72 | + needs: merge |
56 | 73 | runs-on: "ubuntu-latest" |
57 | 74 | environment: release |
58 | 75 | if: github.event_name == 'release' && github.event.action == 'published' |
59 | 76 | permissions: |
60 | 77 | id-token: write |
61 | 78 | steps: |
62 | | - - uses: actions/download-artifact@v3 |
| 79 | + - uses: actions/download-artifact@v4 |
63 | 80 | with: |
64 | 81 | name: artifact |
65 | 82 | path: dist |
|
0 commit comments