Skip to content

Commit 7d0cb93

Browse files
committed
Update GitHub Actions workflow to remove macOS and set CFLAGS for specific architectures
1 parent b3671a2 commit 7d0cb93

File tree

1 file changed

+5
-33
lines changed

1 file changed

+5
-33
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ jobs:
3434
- uses: actions/setup-python@v5
3535
with:
3636
python-version: '3.10'
37-
- name: Set CFLAGS for powerpc64le
38-
if: matrix.platform.target == 'ppc64le'
37+
- name: Set CFLAGS for specific targets
3938
run: |
40-
echo "CFLAGS=-std=c99" >> $GITHUB_ENV
39+
if [[ ${{ matrix.platform.target }} == "ppc64le" || ${{ matrix.platform.target }} == "aarch64" || ${{ matrix.platform.target }} == "armv7" ]]; then
40+
echo "CFLAGS=-std=c99" >> $GITHUB_ENV
41+
fi
4142
- name: Build wheels
4243
uses: PyO3/maturin-action@v1
4344
with:
@@ -51,32 +52,6 @@ jobs:
5152
name: wheels-linux-${{ matrix.platform.target }}
5253
path: dist
5354

54-
macos:
55-
runs-on: ${{ matrix.platform.runner }}
56-
strategy:
57-
matrix:
58-
platform:
59-
- runner: macos-latest
60-
target: x86_64
61-
- runner: macos-14
62-
target: aarch64
63-
steps:
64-
- uses: actions/checkout@v4
65-
- uses: actions/setup-python@v5
66-
with:
67-
python-version: '3.10'
68-
- name: Build wheels
69-
uses: PyO3/maturin-action@v1
70-
with:
71-
target: ${{ matrix.platform.target }}
72-
args: --release --out dist --find-interpreter
73-
sccache: 'true'
74-
- name: Upload wheels
75-
uses: actions/upload-artifact@v4
76-
with:
77-
name: wheels-macos-${{ matrix.platform.target }}
78-
path: dist
79-
8055
sdist:
8156
runs-on: ubuntu-latest
8257
steps:
@@ -96,14 +71,11 @@ jobs:
9671
name: Release
9772
runs-on: ubuntu-latest
9873
if: "startsWith(github.ref, 'refs/tags/')"
99-
needs: [linux, macos, sdist]
74+
needs: [linux, sdist]
10075
steps:
10176
- uses: actions/download-artifact@v4
10277
with:
10378
name: wheels-linux-x86_64
104-
- uses: actions/download-artifact@v4
105-
with:
106-
name: wheels-macos-x86_64
10779
- name: Publish to PyPI
10880
uses: PyO3/maturin-action@v1
10981
env:

0 commit comments

Comments
 (0)