|
12 | 12 | build_wheels: |
13 | 13 | name: Build wheels on ${{ matrix.os }} for ${{ matrix.cibw_archs }} |
14 | 14 | runs-on: ${{ matrix.os }} |
15 | | - strategy: |
16 | | - fail-fast: false |
17 | | - matrix: |
18 | | - include: |
19 | | - # - os: ubuntu-latest |
20 | | - # cibw_archs: "x86_64" |
21 | | - # - os: ubuntu-24.04-arm |
22 | | - # cibw_archs: "aarch64" |
23 | | - - os: windows-latest |
24 | | - cibw_archs: "AMD64" |
25 | | - - os: windows-11-arm |
26 | | - cibw_archs: "ARM64" |
27 | | - # - os: macos-13 |
28 | | - # cibw_archs: "x86_64" |
29 | | - # - os: macos-14 |
30 | | - # cibw_archs: "arm64" |
31 | 15 | env: |
32 | 16 | # CIBW_BEFORE_BUILD: >- |
33 | 17 | # rm -rf {package}/build |
@@ -55,117 +39,131 @@ jobs: |
55 | 39 | # CIBW_TEST_COMMAND: >- |
56 | 40 | # python {package}/ci/check_version_number.py |
57 | 41 | # MACOSX_DEPLOYMENT_TARGET: "10.12" |
| 42 | + strategy: |
| 43 | + fail-fast: false |
| 44 | + matrix: |
| 45 | + include: |
| 46 | + # - os: ubuntu-latest |
| 47 | + # cibw_archs: "x86_64" |
| 48 | + # - os: ubuntu-24.04-arm |
| 49 | + # cibw_archs: "aarch64" |
| 50 | + - os: windows-latest |
| 51 | + cibw_archs: "AMD64" |
| 52 | + - os: windows-11-arm |
| 53 | + cibw_archs: "ARM64" |
| 54 | + # - os: macos-13 |
| 55 | + # cibw_archs: "x86_64" |
| 56 | + # - os: macos-14 |
| 57 | + # cibw_archs: "arm64" |
58 | 58 |
|
59 | 59 | steps: |
60 | 60 | - uses: actions/checkout@v5 |
61 | | - |
62 | | - - name: Build wheels for CPython 3.12 |
63 | | - uses: pypa/cibuildwheel@v3.1.4 # matplotlib had v3.1.3 |
64 | | - with: |
65 | | - package-dir: . |
66 | | - output-dir: wheelhouse |
67 | | - config-file: "{package}/pyproject.toml" |
68 | | - env: |
69 | | - CIBW_BUILD: "cp312-*" |
70 | | - CIBW_ARCHS: ${{ matrix.cibw_archs }} |
71 | | - |
72 | | - # - name: Setup Python |
73 | | - # if: ${{ startsWith(matrix.os, 'windows') }} |
74 | | - # uses: actions/setup-python@v5 |
75 | | - # with: |
76 | | - # python-version: '3.x' |
77 | | - # |
78 | | - # # Maybe not necessary, source: |
79 | | - # # https://dvdhrm.github.io/2021/04/21/meson-msvc-github-actions/ |
80 | | - # # and |
81 | | - # # https://github.com/numpy/numpy/blob/71eebaf8513dfd6ed40b0c689702d81e3f6f2527/.github/workflows/wheels.yml#L123 |
82 | | - # - name: Setup MSVC developer shell (32-bit) |
83 | | - # if: ${{ matrix.os == 'windows-2022' }} |
84 | | - # uses: bus1/cabuild/action/msdevshell@v1 |
85 | | - # with: |
86 | | - # architecture: x64 |
87 | | - # |
88 | | - # - name: Install Fortran compiler |
89 | | - # # When building from source, ensure we have a Fortran compiler |
90 | | - # if: ${{ startsWith(matrix.os, 'macos') }} |
91 | | - # uses: fortran-lang/setup-fortran@v1 |
92 | | - # id: setup-fortran |
93 | | - # with: |
94 | | - # # TODO: figure out whether we need/want to use other compilers too |
95 | | - # compiler: "gcc" |
96 | | - # version: "13" |
97 | | - # |
98 | | - # - name: Set macOS-13 specific flags |
99 | | - # if: matrix.os == 'macos-13' |
100 | | - # run: | |
101 | | - # echo "MACOSX_DEPLOYMENT_TARGET=13.0" >> "$GITHUB_ENV" |
102 | | - # |
103 | | - # - name: Set macOS-14 specific flags |
104 | | - # if: matrix.os == 'macos-14' |
105 | | - # run: | |
106 | | - # echo "MACOSX_DEPLOYMENT_TARGET=14.0" >> "$GITHUB_ENV" |
107 | | - # |
108 | | - # - name: Build wheels |
109 | | - # uses: pypa/cibuildwheel@v3.1.4 |
110 | | - # # env: |
111 | | - # # CIBW_SOME_OPTION: value |
112 | | - # # ... |
113 | | - # with: |
114 | | - # package-dir: . |
115 | | - # output-dir: wheelhouse |
116 | | - # config-file: "{package}/pyproject.toml" |
117 | | - |
118 | | - - uses: actions/upload-artifact@v4 |
119 | | - with: |
120 | | - name: cibw-wheels-${{ matrix.os }}-${{ matrix.cibw_archs }} |
121 | | - path: ./wheelhouse/*.whl |
122 | | - if-no-files-found: error |
123 | | - |
124 | | - # make-sdist: |
125 | | - # name: Make source distribution |
126 | | - # runs-on: "ubuntu-latest" |
127 | | - # |
128 | | - # steps: |
129 | | - # - name: Check out repository |
130 | | - # uses: actions/checkout@v4 |
| 61 | + # - name: Build wheels for CPython 3.12 |
| 62 | + # uses: pypa/cibuildwheel@v3.1.4 # matplotlib had v3.1.3 |
131 | 63 | # with: |
132 | | - # fetch-depth: 0 |
133 | | - # |
134 | | - # - uses: ./.github/actions/setup |
| 64 | + # package-dir: . |
| 65 | + # output-dir: wheelhouse |
| 66 | + # config-file: "{package}/pyproject.toml" |
| 67 | + # env: |
| 68 | + # CIBW_BUILD: "cp312-*" |
| 69 | + # CIBW_ARCHS: ${{ matrix.cibw_archs }} |
| 70 | + # # - name: Setup Python |
| 71 | + # # if: ${{ startsWith(matrix.os, 'windows') }} |
| 72 | + # # uses: actions/setup-python@v5 |
| 73 | + # # with: |
| 74 | + # # python-version: '3.x' |
| 75 | + # # |
| 76 | + # # # Maybe not necessary, source: |
| 77 | + # # # https://dvdhrm.github.io/2021/04/21/meson-msvc-github-actions/ |
| 78 | + # # # and |
| 79 | + # # # https://github.com/numpy/numpy/blob/71eebaf8513dfd6ed40b0c689702d81e3f6f2527/.github/workflows/wheels.yml#L123 |
| 80 | + # # - name: Setup MSVC developer shell (32-bit) |
| 81 | + # # if: ${{ matrix.os == 'windows-2022' }} |
| 82 | + # # uses: bus1/cabuild/action/msdevshell@v1 |
| 83 | + # # with: |
| 84 | + # # architecture: x64 |
| 85 | + # # |
| 86 | + # # - name: Install Fortran compiler |
| 87 | + # # # When building from source, ensure we have a Fortran compiler |
| 88 | + # # if: ${{ startsWith(matrix.os, 'macos') }} |
| 89 | + # # uses: fortran-lang/setup-fortran@v1 |
| 90 | + # # id: setup-fortran |
| 91 | + # # with: |
| 92 | + # # # TODO: figure out whether we need/want to use other compilers too |
| 93 | + # # compiler: "gcc" |
| 94 | + # # version: "13" |
| 95 | + # # |
| 96 | + # # - name: Set macOS-13 specific flags |
| 97 | + # # if: matrix.os == 'macos-13' |
| 98 | + # # run: | |
| 99 | + # # echo "MACOSX_DEPLOYMENT_TARGET=13.0" >> "$GITHUB_ENV" |
| 100 | + # # |
| 101 | + # # - name: Set macOS-14 specific flags |
| 102 | + # # if: matrix.os == 'macos-14' |
| 103 | + # # run: | |
| 104 | + # # echo "MACOSX_DEPLOYMENT_TARGET=14.0" >> "$GITHUB_ENV" |
| 105 | + # # |
| 106 | + # # - name: Build wheels |
| 107 | + # # uses: pypa/cibuildwheel@v3.1.4 |
| 108 | + # # # env: |
| 109 | + # # # CIBW_SOME_OPTION: value |
| 110 | + # # # ... |
| 111 | + # # with: |
| 112 | + # # package-dir: . |
| 113 | + # # output-dir: wheelhouse |
| 114 | + # # config-file: "{package}/pyproject.toml" |
| 115 | + # - name: Upload wheels |
| 116 | + # uses: actions/upload-artifact@v4 |
135 | 117 | # with: |
136 | | - # python-version: ${{ matrix.python-version }} |
137 | | - # uv-dependency-install-flags: "--all-extras --group dev" |
| 118 | + # name: cibw-wheels-${{ matrix.os }}-${{ matrix.cibw_archs }} |
| 119 | + # path: ./wheelhouse/*.whl |
| 120 | + # if-no-files-found: error |
138 | 121 | # |
139 | | - # - name: Create source distribution |
140 | | - # run: uv build --sdist |
| 122 | + # # make-sdist: |
| 123 | + # # name: Make source distribution |
| 124 | + # # runs-on: "ubuntu-latest" |
| 125 | + # # |
| 126 | + # # steps: |
| 127 | + # # - name: Check out repository |
| 128 | + # # uses: actions/checkout@v4 |
| 129 | + # # with: |
| 130 | + # # fetch-depth: 0 |
| 131 | + # # |
| 132 | + # # - uses: ./.github/actions/setup |
| 133 | + # # with: |
| 134 | + # # python-version: ${{ matrix.python-version }} |
| 135 | + # # uv-dependency-install-flags: "--all-extras --group dev" |
| 136 | + # # |
| 137 | + # # - name: Create source distribution |
| 138 | + # # run: uv build --sdist |
| 139 | + # # |
| 140 | + # # - name: Upload the source distribution artefact |
| 141 | + # # uses: actions/upload-artifact@v4 |
| 142 | + # # with: |
| 143 | + # # name: cibw-sdist |
| 144 | + # # path: dist/*.tar.gz |
141 | 145 | # |
142 | | - # - name: Upload the source distribution artefact |
143 | | - # uses: actions/upload-artifact@v4 |
| 146 | + # deploy-pypi: |
| 147 | + # # TODO: turn back on |
| 148 | + # # needs: [ build-wheels, make-sdist ] |
| 149 | + # needs: [build-wheels] |
| 150 | + # # Having an environment for deployment is strongly recommend by PyPI |
| 151 | + # # https://docs.pypi.org/trusted-publishers/adding-a-publisher/#github-actions |
| 152 | + # # You can comment this line out if you don't want it. |
| 153 | + # # # TODO: turn back on when we only run this on main |
| 154 | + # # environment: deploy |
| 155 | + # # permissions: |
| 156 | + # # # this permission is mandatory for trusted publishing with PyPI |
| 157 | + # # id-token: write |
| 158 | + # runs-on: ubuntu-latest |
| 159 | + # steps: |
| 160 | + # - name: Download artefacts |
| 161 | + # uses: actions/download-artifact@v5 |
144 | 162 | # with: |
145 | | - # name: cibw-sdist |
146 | | - # path: dist/*.tar.gz |
147 | | - |
148 | | - deploy-pypi: |
149 | | - # TODO: turn back on |
150 | | - # needs: [ build-wheels, make-sdist ] |
151 | | - needs: [build-wheels] |
152 | | - # Having an environment for deployment is strongly recommend by PyPI |
153 | | - # https://docs.pypi.org/trusted-publishers/adding-a-publisher/#github-actions |
154 | | - # You can comment this line out if you don't want it. |
155 | | - # # TODO: turn back on when we only run this on main |
156 | | - # environment: deploy |
157 | | - # permissions: |
158 | | - # # this permission is mandatory for trusted publishing with PyPI |
159 | | - # id-token: write |
160 | | - runs-on: ubuntu-latest |
161 | | - steps: |
162 | | - - name: Download artefacts |
163 | | - uses: actions/download-artifact@v5 |
164 | | - with: |
165 | | - pattern: cibw-* |
166 | | - path: dist |
167 | | - merge-multiple: true |
168 | | - - name: Publish to PyPI |
169 | | - run: | |
170 | | - ls dist |
171 | | - # uv publish |
| 163 | + # pattern: cibw-* |
| 164 | + # path: dist |
| 165 | + # merge-multiple: true |
| 166 | + # - name: Publish to PyPI |
| 167 | + # run: | |
| 168 | + # ls dist |
| 169 | + # # uv publish |
0 commit comments