@@ -3,67 +3,65 @@ name: Build
33on : [push, pull_request]
44
55jobs :
6- # build_wheels:
7- # name: Build wheels on ${{ matrix.os }}
8- # runs-on: ${{ matrix.os }}
9- # strategy:
10- # matrix:
11- # os:
12- # [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14]
6+ build_wheels :
7+ name : Build wheels on ${{ matrix.os }}
8+ runs-on : ${{ matrix.os }}
9+ strategy :
10+ matrix :
11+ os :
12+ [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14]
1313
14- # steps:
15- # - uses: actions/checkout@v4
16- # with:
17- # submodules: true
14+ steps :
15+ - uses : actions/checkout@v4
16+ with :
17+ submodules : true
1818
19- # - name: Build sdist
20- # run: |
21- # pipx run build --sdist
22- # python3 -c "import pathlib,glob;pathlib.Path('GITHUB_ENV').write_text('SDIST_PATH' + glob.glob('dist/*.tar.gz')[0])"
19+ - name : Build sdist
20+ run : |
21+ pipx run build --sdist
22+ python3 -c "import pathlib,glob;pathlib.Path('GITHUB_ENV').write_text('SDIST_PATH' + glob.glob('dist/*.tar.gz')[0])"
2323
24- # - name: Build wheels
25- 26- # env:
27- # CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-* pp310-* pp311-*"
28- # # CIBW_TEST_COMMAND: "python -m pymunk.tests"
29- # # CIBW_BUILD_VERBOSITY: 3
30- # with:
31- # package-dir: "$SDIST_PATH"
24+ - name : Build wheels
25+ 26+ env :
27+ CIBW_BUILD : " cp39-* cp310-* cp311-* cp312-* cp313-* pp310-* pp311-*"
28+ with :
29+ package-dir : " $SDIST_PATH"
3230
33- # - name: Upload wheel artifacts
34- # uses: actions/upload-artifact@v4
35- # if: ${{ github.ref == 'refs/heads/master'}}
36- # with:
37- # name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
38- # path: ./wheelhouse/*.whl
39- # retention-days: 7
31+ - name : Upload wheel artifacts
32+ uses : actions/upload-artifact@v4
33+ if : ${{ github.ref == 'refs/heads/master'}}
34+ with :
35+ name : cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
36+ path : ./wheelhouse/*.whl
37+ retention-days : 7
4038
41- # - name: Upload sdist artifact
42- # uses: actions/upload-artifact@v4
43- # if:
44- # ${{ github.ref == 'refs/heads/master' && matrix.os ==
45- # 'windows-latest'}}
46- # with:
47- # name: sdist-${{ matrix.os }}-${{ strategy.job-index }}
48- # path: ./dist/*.tar.gz
49- # retention-days: 7
39+ - name : Upload sdist artifact
40+ uses : actions/upload-artifact@v4
41+ if :
42+ ${{ github.ref == 'refs/heads/master' && matrix.os ==
43+ ' windows-latest' }}
44+ with :
45+ name : sdist-${{ matrix.os }}-${{ strategy.job-index }}
46+ path : ./dist/*.tar.gz
47+ retention-days : 7
5048
51- # build_wasm:
52- # name: Build wheels for wasm / emscripten
53- # runs-on: ubuntu-22.04
54- # steps:
55- # - uses: actions/checkout@v4
56- # with:
57- # submodules: true
58- 59- # env:
60- # CIBW_PLATFORM: pyodide
61- # - uses: actions/upload-artifact@v4
62- # if: ${{ github.ref == 'refs/heads/master' }}
63- # with:
64- # name: cibw-wheels-pyodide-${{ matrix.os }}-${{ strategy.job-index }}
65- # path: ./wheelhouse/*.whl
66- # retention-days: 7
49+ build_wasm :
50+ name : Build wheels for wasm / emscripten
51+ runs-on : ubuntu-22.04
52+ steps :
53+ - uses : actions/checkout@v4
54+ with :
55+ submodules : true
56+ 57+ env :
58+ CIBW_PLATFORM : pyodide
59+ - uses : actions/upload-artifact@v4
60+ if : ${{ github.ref == 'refs/heads/master' }}
61+ with :
62+ name : cibw-wheels-pyodide-${{ matrix.os }}-${{ strategy.job-index }}
63+ path : ./wheelhouse/*.whl
64+ retention-days : 7
6765
6866 build_ios :
6967 name : Build wheels for iOS
7472 with :
7573 submodules : true
7674 - run : brew upgrade cmake
77- - name : Build wheels
78- 75+ 7976 env :
8077 CIBW_PLATFORM : ios
81-
8278 - uses : actions/upload-artifact@v4
8379 if : ${{ github.ref == 'refs/heads/master' }}
8480 with :
0 commit comments