Skip to content

Commit b3671a2

Browse files
committed
Update GitHub Actions workflow to remove Windows and set CFLAGS for powerpc64le
1 parent 1ea9b19 commit b3671a2

File tree

1 file changed

+5
-38
lines changed

1 file changed

+5
-38
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ 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'
39+
run: |
40+
echo "CFLAGS=-std=c99" >> $GITHUB_ENV
3741
- name: Build wheels
3842
uses: PyO3/maturin-action@v1
3943
with:
@@ -47,40 +51,6 @@ jobs:
4751
name: wheels-linux-${{ matrix.platform.target }}
4852
path: dist
4953

50-
windows:
51-
runs-on: windows-latest
52-
strategy:
53-
matrix:
54-
platform:
55-
- target: x64
56-
- target: x86
57-
steps:
58-
- uses: actions/checkout@v4
59-
- uses: actions/setup-python@v5
60-
with:
61-
python-version: '3.10'
62-
architecture: ${{ matrix.platform.target }}
63-
- name: Install MSVC Build Tools
64-
run: |
65-
choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --includeOptional"
66-
choco install python --version 3.10
67-
python -m pip install --upgrade pip
68-
- name: Set up MSVC environment
69-
shell: cmd
70-
run: |
71-
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
72-
- name: Build wheels
73-
uses: PyO3/maturin-action@v1
74-
with:
75-
target: ${{ matrix.platform.target }}
76-
args: --release --out dist --find-interpreter
77-
sccache: 'true'
78-
- name: Upload wheels
79-
uses: actions/upload-artifact@v4
80-
with:
81-
name: wheels-windows-${{ matrix.platform.target }}
82-
path: dist
83-
8454
macos:
8555
runs-on: ${{ matrix.platform.runner }}
8656
strategy:
@@ -126,14 +96,11 @@ jobs:
12696
name: Release
12797
runs-on: ubuntu-latest
12898
if: "startsWith(github.ref, 'refs/tags/')"
129-
needs: [linux, windows, macos, sdist]
99+
needs: [linux, macos, sdist]
130100
steps:
131101
- uses: actions/download-artifact@v4
132102
with:
133103
name: wheels-linux-x86_64
134-
- uses: actions/download-artifact@v4
135-
with:
136-
name: wheels-windows-x64
137104
- uses: actions/download-artifact@v4
138105
with:
139106
name: wheels-macos-x86_64

0 commit comments

Comments
 (0)