|
1 | | -# CI -- Build wheels on Linux/Windows/macOS, publish to PyPI on tag. |
| 1 | +# CI -- Build wheels on Linux/Windows/macOS ARM, publish to PyPI on tag. |
2 | 2 | # |
3 | 3 | # Rust source is injected at build time from three GitHub Actions secrets |
4 | 4 | # (RUST_SRC_B64_1 + RUST_SRC_B64_2 + RUST_SRC_B64_3) to keep the proprietary |
@@ -120,52 +120,6 @@ jobs: |
120 | 120 | name: wheels-windows-x64-py${{ matrix.python-version }} |
121 | 121 | path: dist |
122 | 122 |
|
123 | | - # ------------------------------------------------------------------ |
124 | | - # macOS Intel (x86_64) wheels |
125 | | - # ------------------------------------------------------------------ |
126 | | - macos-intel: |
127 | | - name: macos-x86_64-py${{ matrix.python-version }} |
128 | | - runs-on: macos-13 |
129 | | - strategy: |
130 | | - fail-fast: false |
131 | | - matrix: |
132 | | - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] |
133 | | - steps: |
134 | | - - uses: actions/checkout@v4 |
135 | | - |
136 | | - - name: Inject Rust source |
137 | | - env: |
138 | | - PART1: ${{ secrets.RUST_SRC_B64_1 }} |
139 | | - PART2: ${{ secrets.RUST_SRC_B64_2 }} |
140 | | - PART3: ${{ secrets.RUST_SRC_B64_3 }} |
141 | | - run: | |
142 | | - if [ -z "$PART1" ]; then |
143 | | - echo "::warning::RUST_SRC_B64_1 secret not set -- skipping wheel build" |
144 | | - echo "SKIP_BUILD=1" >> "$GITHUB_ENV" |
145 | | - else |
146 | | - echo "${PART1}${PART2}${PART3}" | base64 -d | tar -xzf - -C . |
147 | | - echo "SKIP_BUILD=0" >> "$GITHUB_ENV" |
148 | | - fi |
149 | | -
|
150 | | - - uses: actions/setup-python@v5 |
151 | | - if: env.SKIP_BUILD == '0' |
152 | | - with: |
153 | | - python-version: ${{ matrix.python-version }} |
154 | | - |
155 | | - - name: Build macOS Intel wheel |
156 | | - if: env.SKIP_BUILD == '0' |
157 | | - uses: PyO3/maturin-action@v1 |
158 | | - with: |
159 | | - target: x86_64 |
160 | | - args: ${{ env.MATURIN_ARGS }} -i python |
161 | | - sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} |
162 | | - |
163 | | - - uses: actions/upload-artifact@v4 |
164 | | - if: env.SKIP_BUILD == '0' |
165 | | - with: |
166 | | - name: wheels-macos-x86_64-py${{ matrix.python-version }} |
167 | | - path: dist |
168 | | - |
169 | 123 | # ------------------------------------------------------------------ |
170 | 124 | # macOS Apple Silicon (aarch64) wheels |
171 | 125 | # ------------------------------------------------------------------ |
@@ -258,7 +212,7 @@ jobs: |
258 | 212 | startsWith(github.ref, 'refs/tags/v') && |
259 | 213 | github.repository == 'GuillaumeLessard/qector-decoder' && |
260 | 214 | github.event_name != 'pull_request' |
261 | | - needs: [linux-x86_64, windows-x64, macos-intel, macos-arm, sdist] |
| 215 | + needs: [linux-x86_64, windows-x64, macos-arm, sdist] |
262 | 216 | environment: pypi |
263 | 217 | permissions: |
264 | 218 | id-token: write |
|
0 commit comments