Skip to content

Commit f4498fc

Browse files
authored
remove all the build targets we aren't using
1 parent 781e6b0 commit f4498fc

1 file changed

Lines changed: 29 additions & 103 deletions

File tree

.github/workflows/CI.yml

Lines changed: 29 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,8 @@ jobs:
2424
strategy:
2525
matrix:
2626
platform:
27-
- runner: ubuntu-22.04
27+
- runner: ubuntu-latest
2828
target: x86_64
29-
- runner: ubuntu-22.04
30-
target: x86
31-
- runner: ubuntu-22.04
32-
target: aarch64
33-
- runner: ubuntu-22.04
34-
target: armv7
35-
- runner: ubuntu-22.04
36-
target: s390x
37-
- runner: ubuntu-22.04
38-
target: ppc64le
3929
steps:
4030
- uses: actions/checkout@v6
4131
- uses: actions/setup-python@v6
@@ -59,14 +49,8 @@ jobs:
5949
strategy:
6050
matrix:
6151
platform:
62-
- runner: ubuntu-22.04
52+
- runner: ubuntu-latest
6353
target: x86_64
64-
- runner: ubuntu-22.04
65-
target: x86
66-
- runner: ubuntu-22.04
67-
target: aarch64
68-
- runner: ubuntu-22.04
69-
target: armv7
7054
steps:
7155
- uses: actions/checkout@v6
7256
- uses: actions/setup-python@v6
@@ -84,65 +68,6 @@ jobs:
8468
with:
8569
name: wheels-musllinux-${{ matrix.platform.target }}
8670
path: dist
87-
88-
windows:
89-
runs-on: ${{ matrix.platform.runner }}
90-
strategy:
91-
matrix:
92-
platform:
93-
- runner: windows-latest
94-
target: x64
95-
python_arch: x64
96-
- runner: windows-latest
97-
target: x86
98-
python_arch: x86
99-
- runner: windows-11-arm
100-
target: aarch64
101-
python_arch: arm64
102-
steps:
103-
- uses: actions/checkout@v6
104-
- uses: actions/setup-python@v6
105-
with:
106-
python-version: "3.13"
107-
architecture: ${{ matrix.platform.python_arch }}
108-
- name: Build wheels
109-
uses: PyO3/maturin-action@v1
110-
with:
111-
target: ${{ matrix.platform.target }}
112-
args: --release --out dist --find-interpreter
113-
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
114-
- name: Upload wheels
115-
uses: actions/upload-artifact@v6
116-
with:
117-
name: wheels-windows-${{ matrix.platform.target }}
118-
path: dist
119-
120-
macos:
121-
runs-on: ${{ matrix.platform.runner }}
122-
strategy:
123-
matrix:
124-
platform:
125-
- runner: macos-15-intel
126-
target: x86_64
127-
- runner: macos-latest
128-
target: aarch64
129-
steps:
130-
- uses: actions/checkout@v6
131-
- uses: actions/setup-python@v6
132-
with:
133-
python-version: "3.x"
134-
- name: Build wheels
135-
uses: PyO3/maturin-action@v1
136-
with:
137-
target: ${{ matrix.platform.target }}
138-
args: --release --out dist --find-interpreter
139-
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
140-
- name: Upload wheels
141-
uses: actions/upload-artifact@v6
142-
with:
143-
name: wheels-macos-${{ matrix.platform.target }}
144-
path: dist
145-
14671
sdist:
14772
runs-on: ubuntu-latest
14873
steps:
@@ -158,29 +83,30 @@ jobs:
15883
name: wheels-sdist
15984
path: dist
16085

161-
release:
162-
name: Release
163-
runs-on: ubuntu-latest
164-
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
165-
needs: [linux, musllinux, windows, macos, sdist]
166-
permissions:
167-
# Use to sign the release artifacts
168-
id-token: write
169-
# Used to upload release artifacts
170-
contents: write
171-
# Used to generate artifact attestation
172-
attestations: write
173-
steps:
174-
- uses: actions/download-artifact@v7
175-
- name: Generate artifact attestation
176-
uses: actions/attest@v4
177-
with:
178-
subject-path: 'wheels-*/*'
179-
- name: Install uv
180-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
181-
uses: astral-sh/setup-uv@v7
182-
- name: Publish to PyPI
183-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
184-
run: uv publish 'wheels-*/*'
185-
env:
186-
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
86+
## We aren't releasing this to pypi, just going to use the whl (probably...)
87+
# release:
88+
# name: Release
89+
# runs-on: ubuntu-latest
90+
# if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
91+
# needs: [linux, musllinux, sdist]
92+
# permissions:
93+
# # Use to sign the release artifacts
94+
# id-token: write
95+
# # Used to upload release artifacts
96+
# contents: write
97+
# # Used to generate artifact attestation
98+
# attestations: write
99+
# steps:
100+
# - uses: actions/download-artifact@v7
101+
# - name: Generate artifact attestation
102+
# uses: actions/attest@v4
103+
# with:
104+
# subject-path: 'wheels-*/*'
105+
# - name: Install uv
106+
# if: ${{ startsWith(github.ref, 'refs/tags/') }}
107+
# uses: astral-sh/setup-uv@v7
108+
# - name: Publish to PyPI
109+
# if: ${{ startsWith(github.ref, 'refs/tags/') }}
110+
# run: uv publish 'wheels-*/*'
111+
# env:
112+
# UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)