|
6 | 6 | env: |
7 | 7 | BUILD_TYPE: Release |
8 | 8 | MIN_CIBUILDWHEEL_VERSION: 2.16.2 |
| 9 | + PYTHON_VERSION: 3.x |
9 | 10 |
|
10 | 11 | jobs: |
11 | 12 | build_sdist: |
12 | 13 | name: Source distribution |
13 | 14 | runs-on: ubuntu-latest |
14 | 15 | steps: |
15 | | - - uses: actions/checkout@v3 |
| 16 | + - uses: actions/checkout@v4 |
16 | 17 |
|
17 | | - - uses: actions/setup-python@v4 |
| 18 | + - uses: actions/setup-python@v5 |
18 | 19 | name: Install Python |
19 | 20 | with: |
20 | | - python-version: '3.x' |
| 21 | + python-version: ${{ env.PYTHON_VERSION }} |
21 | 22 |
|
22 | 23 | - name: Install build package |
23 | 24 | run: python -m pip install build --user |
24 | 25 |
|
25 | 26 | - name: Build sdist |
26 | 27 | run: python -m build --sdist --outdir dist |
27 | 28 |
|
28 | | - - uses: actions/upload-artifact@v3 |
| 29 | + - uses: actions/upload-artifact@v4 |
29 | 30 | with: |
| 31 | + name: sdist |
30 | 32 | path: dist/*.tar.gz |
| 33 | + compression-level: 0 # contents are already compressed |
| 34 | + |
31 | 35 |
|
32 | 36 | build_wheels: |
33 | 37 | name: ${{ matrix.config.name }} |
@@ -69,16 +73,16 @@ jobs: |
69 | 73 |
|
70 | 74 | steps: |
71 | 75 | - name: Checkout |
72 | | - uses: actions/checkout@v3 |
| 76 | + uses: actions/checkout@v4 |
73 | 77 |
|
74 | | - - name: Set up Python 3.x |
75 | | - uses: actions/setup-python@v4 |
| 78 | + - name: Set up Python |
| 79 | + uses: actions/setup-python@v5 |
76 | 80 | with: |
77 | | - python-version: '3.x' |
| 81 | + python-version: ${{ env.PYTHON_VERSION }} |
78 | 82 |
|
79 | 83 | - name: Set up QEMU for linux/arm64 builds |
80 | 84 | if: runner.os == 'Linux' && matrix.config.use-qemu == true |
81 | | - uses: docker/setup-qemu-action@v2 |
| 85 | + uses: docker/setup-qemu-action@v3 |
82 | 86 | with: |
83 | 87 | platforms: arm64 |
84 | 88 |
|
|
88 | 92 | - name: Build wheels |
89 | 93 | run: python -m cibuildwheel --output-dir dist |
90 | 94 | env: |
| 95 | + CIBW_ENVIRONMENT_MACOS: CMAKE_OSX_ARCHITECTURES=${{ matrix.config.cibw-arch == 'macosx_x86_64' && 'x86_64' || matrix.config.cibw-arch == 'macosx_arm64' && 'arm64' || '' }} |
91 | 96 | CIBW_BUILD: "*-${{ matrix.config.cibw-arch }}" |
| 97 | + MACOSX_DEPLOYMENT_TARGET: "10.14" # min supporting c++17 |
92 | 98 |
|
93 | | - - uses: actions/upload-artifact@v3 |
| 99 | + - uses: actions/upload-artifact@v4 |
94 | 100 | with: |
| 101 | + name: wheels-${{ matrix.config.os }}-${{ matrix.config.cibw-arch }} |
95 | 102 | path: ./dist/*.whl |
| 103 | + compression-level: 0 # contents are already compressed |
| 104 | + |
| 105 | + |
| 106 | + aggregate_artifacts: |
| 107 | + name: Aggregate artifacts |
| 108 | + runs-on: ubuntu-latest |
| 109 | + needs: [build_sdist, build_wheels] |
| 110 | + steps: |
| 111 | + - name: Merge Artifacts |
| 112 | + uses: actions/upload-artifact/merge@v4 |
| 113 | + with: |
| 114 | + name: python_wheels |
| 115 | + compression-level: 0 |
| 116 | + delete-merged: true |
0 commit comments