@@ -15,36 +15,41 @@ jobs:
1515 pyver : [cp38, cp39, cp310, cp311, cp312]
1616 version : [2.28.8]
1717 steps :
18- - uses : actions/checkout@v3
19- - uses : actions/setup-python@v4
18+ - uses : actions/checkout@v4
19+ - uses : actions/setup-python@v5
2020 with :
2121 python-version : ' 3.10'
2222 - name : Create source dist
2323 run : python setup.py sdist
2424 - name : Upload source dist
25- uses : actions/upload-artifact@v3
25+ uses : actions/upload-artifact@v4
2626 with :
27- name : dist
27+ name : dist-${{ matrix.version }}-${{ matrix.pyver }}-${{ matrix.os }}
2828 path : dist
2929 if-no-files-found : error
3030 - name : Build and test wheels
31- uses : pypa/cibuildwheel@v2.16
31+ uses : pypa/cibuildwheel@v2.17
3232 env :
3333 CIBW_BUILD : ${{ matrix.pyver }}-*
3434 CIBW_ENVIRONMENT : VERSION=${{ matrix.version }}
3535 CIBW_ENVIRONMENT_MACOS : >
3636 VERSION=${{ matrix.version }}
3737 LDFLAGS="-Wl,-headerpad_max_install_names"
38+ UPSTREAM_DEST="$GITHUB_WORKSPACE/.local/upstream"
39+ C_INCLUDE_PATH="$UPSTREAM_DEST/include"
40+ LIBRARY_PATH="$UPSTREAM_DEST/lib"
41+ DYLD_LIBRARY_PATH="$UPSTREAM_DEST/lib"
3842 CIBW_ENVIRONMENT_WINDOWS : >
3943 VERSION=${{ matrix.version }}
4044 LIB=$GITHUB_WORKSPACE\\_lib\\mbedtls\\visualc\\VS2010\\x64\\Release
4145 INCLUDE=$GITHUB_WORKSPACE\\_lib\\mbedtls\\include
46+ CIBW_TEST_SKIP : " cp38-macosx_arm64"
4247 - name : Inventory
4348 run : ls wheelhouse
4449 - name : Upload wheels
45- uses : actions/upload-artifact@v3
50+ uses : actions/upload-artifact@v4
4651 with :
47- name : wheels
52+ name : wheels-${{ matrix.version }}-${{ matrix.pyver }}-${{ matrix.os }}
4853 path : wheelhouse/
4954 if-no-files-found : error
5055
@@ -60,15 +65,16 @@ jobs:
6065 && github.repository == 'Synss/python-mbedtls'
6166 steps :
6267 - name : Download source packages
63- uses : actions/download-artifact@v3
68+ uses : actions/download-artifact@v4
6469 with :
65- name : dist
70+ pattern : dist-${{ matrix.version }}-*
6671 path : dist
6772 - name : Download wheels
68- uses : actions/download-artifact@v3
73+ uses : actions/download-artifact@v4
6974 with :
70- name : wheels
75+ pattern : wheels-${{ matrix.version }}-*
7176 path : dist
77+ merge-multiple : true
7278 - name : List dir content
7379 run : ls dist
7480 - name : Publish to pypi
0 commit comments