|
34 | 34 | - uses: actions/setup-python@v5
|
35 | 35 | with:
|
36 | 36 | 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 |
37 | 41 | - name: Build wheels
|
38 | 42 | uses: PyO3/maturin-action@v1
|
39 | 43 | with:
|
|
47 | 51 | name: wheels-linux-${{ matrix.platform.target }}
|
48 | 52 | path: dist
|
49 | 53 |
|
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 |
| - |
84 | 54 | macos:
|
85 | 55 | runs-on: ${{ matrix.platform.runner }}
|
86 | 56 | strategy:
|
@@ -126,14 +96,11 @@ jobs:
|
126 | 96 | name: Release
|
127 | 97 | runs-on: ubuntu-latest
|
128 | 98 | if: "startsWith(github.ref, 'refs/tags/')"
|
129 |
| - needs: [linux, windows, macos, sdist] |
| 99 | + needs: [linux, macos, sdist] |
130 | 100 | steps:
|
131 | 101 | - uses: actions/download-artifact@v4
|
132 | 102 | with:
|
133 | 103 | name: wheels-linux-x86_64
|
134 |
| - - uses: actions/download-artifact@v4 |
135 |
| - with: |
136 |
| - name: wheels-windows-x64 |
137 | 104 | - uses: actions/download-artifact@v4
|
138 | 105 | with:
|
139 | 106 | name: wheels-macos-x86_64
|
|
0 commit comments