11name : wheel
22
33on :
4- [push, pull_request, workflow_dispatch]
4+ release :
5+ types : [published]
6+ workflow_dispatch :
57
68jobs :
79 build_wheels :
@@ -10,27 +12,26 @@ jobs:
1012 strategy :
1113 matrix :
1214 # https://github.com/actions/runner-images
13- # arm64: macos-14, macos-15
14- # x86_64: macos-13
15- os : [ubuntu-latest, windows-latest, macos-13, macos-14 , macos-15 ]
15+ # arm64: macos-latest
16+ # x86_64: macos-15-intel
17+ os : [ubuntu-latest, windows-latest, macos-15-intel , macos-latest ]
1618
1719 steps :
18- - uses : actions/checkout@v4
20+ - uses : actions/checkout@v6
1921
2022 - name : Build wheels
2123 # https://github.com/pypa/cibuildwheel/releases
22- uses : pypa/cibuildwheel@v3.1 .0
24+ uses : pypa/cibuildwheel@v3.3 .0
2325 env :
24- CIBW_ARCHS_WINDOWS : " AMD64 x86 "
25- CIBW_FREE_THREADED_SUPPORT : 1
26+ CIBW_ARCHS_WINDOWS : " AMD64"
27+ CIBW_ARCHS_LINUX : " x86_64 "
2628 with :
2729 package-dir : " ."
2830 output-dir : " ./wheelhouse"
2931 config-file : " ./pyproject.toml"
3032
31- - uses : actions/upload-artifact@v4
33+ - uses : actions/upload-artifact@v6
3234 with :
33- # name: fcecodec-cp-wheels-${{ matrix.os }} #-${{ strategy.job-index }}
3435 name : cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
3536 path : ./wheelhouse/*.whl
3637
@@ -39,15 +40,15 @@ jobs:
3940 name : Make SDist
4041 runs-on : ubuntu-latest
4142 steps :
42- - uses : actions/checkout@v4
43+ - uses : actions/checkout@v6
4344 with :
4445 fetch-depth : 0 # Optional, use if you use setuptools_scm
4546 fetch-tags : true # Optional, use if you use setuptools_scm
4647
4748 - name : Build SDist
4849 run : pipx run build --sdist
4950
50- - uses : actions/upload-artifact@v4
51+ - uses : actions/upload-artifact@v6
5152 with :
5253 name : cibw-sdist
5354 path : dist/*.tar.gz
5960 permissions :
6061 id-token : write
6162 runs-on : ubuntu-latest
62- # if: github.event_name == 'release' && github.event.action == 'published'
63- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/1')
63+ if : github.event_name == 'release' && github.event.action == 'published' && startsWith(github.ref, 'refs/tags/2')
6464 steps :
65- - uses : actions/download-artifact@v4
65+ - uses : actions/download-artifact@v7
6666 with :
6767 pattern : cibw-*
6868 path : dist
0 commit comments