4242 python -m pytest --cov=$MOD_NAME $MOD_DPATH ../tests
4343 cd ..
4444 - name : Upload sdist artifact
45- uses : actions/upload-artifact@v3
45+ uses : actions/upload-artifact@v4
4646 with :
47- name : wheels
47+ name : wheels-src
4848 path : ./wheelhouse/*.tar.gz
4949
5050 build_binary_wheels :
@@ -53,21 +53,21 @@ jobs:
5353 strategy :
5454 matrix :
5555 os : ["windows-latest", "ubuntu-latest", "macOS-latest"]
56- cibw_skip : ["*- win32"]
56+ cibw_skip : ["win32"]
5757 arch : [auto]
5858 include :
5959 - os : windows-latest
6060 arch : auto
61- cibw_skip : ' *- win_amd64'
61+ cibw_skip : ' win_amd64'
6262 steps :
6363 - name : Checkout source
6464 uses : actions/checkout@v4
6565 - name : Enable MSVC 64bit
6666 uses : ilammy/msvc-dev-cmd@v1
67- if : matrix.os == 'windows-latest' && matrix.cibw_skip == '*- win32'
67+ if : matrix.os == 'windows-latest' && matrix.cibw_skip == 'win32'
6868 - name : Enable MSVC 32bit
6969 uses : ilammy/msvc-dev-cmd@v1
70- if : matrix.os == 'windows-latest' && matrix.cibw_skip == '*- win_amd64'
70+ if : matrix.os == 'windows-latest' && matrix.cibw_skip == 'win_amd64'
7171 with :
7272 arch : x86
7373 - name : Build binary wheels
7878 env :
7979 CIBW_BUILD_VERBOSITY : 1
8080 # CIBW_TEST_COMMAND: pytest
81- CIBW_SKIP : ${{ matrix.cibw_skip }}
81+ CIBW_SKIP : " *- ${{ matrix.cibw_skip }}"
8282 CIBW_ARCHS_LINUX : ${{ matrix.arch }}
8383 - name : Show built files
8484 shell : bash
@@ -107,12 +107,13 @@ jobs:
107107 name : Codecov Upload
108108 with :
109109 file : ./tests/coverage.xml
110- - uses : actions/upload-artifact@v3
110+ - uses : actions/upload-artifact@v4
111111 name : Upload wheels artifact
112112 with :
113- name : wheels
113+ name : wheels-${{ matrix.os }}-${{ matrix.cibw_skip }}
114114 path : ./wheelhouse/*.whl
115115
116+
116117 publish_wheels :
117118 name : Publish Wheels
118119 runs-on : ubuntu-latest
@@ -121,11 +122,17 @@ jobs:
121122 - build_sdist
122123
123124 steps :
125+ - name : Merge wheels
126+ uses : actions/upload-artifact/merge@v4
127+ with :
128+ name : wheels
129+ pattern : wheels-*
130+
124131 - name : Checkout source
125132 uses : actions/checkout@v4
126133
127134 - name : Download wheels and sdist
128- uses : actions/download-artifact@v3
135+ uses : actions/download-artifact@v4
129136 with :
130137 name : wheels
131138 path : wheelhouse
0 commit comments