@@ -16,20 +16,14 @@ jobs:
1616 - {
1717 os : ubuntu-latest,
1818 arch : x64,
19- python-ver : ' 3.8 ' ,
20- name : ' manylinux2014_x86_64 '
19+ python-version : ' cp38 ' ,
20+ name : ' manylinux_x86_64 '
2121 }
2222 - {
2323 os : ubuntu-latest,
2424 arch : x32,
25- python-ver : ' 3.8' ,
26- name : ' manylinux2014_i686'
27- }
28- - {
29- os : ubuntu-latest,
30- arch : x64,
31- python-ver : ' 3.8' ,
32- name : ' sdist'
25+ python-version : ' cp38' ,
26+ name : ' manylinux_i686'
3327 }
3428 # - {
3529 # os: macos-latest,
3832 # name: 'macos_x86_64'
3933 # }
4034 steps :
35+ - uses : actions/checkout@v4
36+
4137 - name : set up python
4238 uses : actions/setup-python@v4
4339 with :
@@ -51,19 +47,19 @@ jobs:
5147 - name : Setup Rust cache
5248 uses : Swatinem/rust-cache@v2
5349 with :
54- key : ${{ matrix.alt_arch_name }}
50+ key : ${{ matrix.config. alt_arch_name }}
5551
5652 - name : Get pip cache dir
5753 id : pip-cache
58- if : matrix.os != 'windows-latest'
54+ if : matrix.config. os != 'windows-latest'
5955 run : |
6056 echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
6157
6258 - name : Cache python dependencies
6359 uses : actions/cache@v3
6460 with :
6561 path : ${{ steps.pip-cache.outputs.dir || steps.pip-cache-win.outputs.dir }}
66- key : ${{ runner.os }}-pip-${{ matrix.python-version }}
62+ key : ${{ runner.os }}-pip-${{ matrix.config. python-version }}
6763
6864 - name : install python dependencies
6965 run : pip install -U setuptools wheel twine cibuildwheel platformdirs
@@ -82,34 +78,37 @@ jobs:
8278 uses : actions/cache@v3
8379 with :
8480 path : ${{ steps.cibuildwheel-cache.outputs.dir }}
85- key : ${{ runner.os }}-cibuildwheel-${{ matrix.python-version }}
81+ key : ${{ runner.os }}-cibuildwheel-${{ matrix.config. python-version }}
8682
8783 - name : build sdist
88- if : matrix.os == 'ubuntu' && matrix.python-version == 'cp310 '
84+ if : matrix.config. os == 'ubuntu-latest ' && matrix.config. python-version == 'cp38 '
8985 run : |
9086 pip install maturin build
9187 python -m build --sdist -o wheelhouse
9288
93- - name : build ${{ matrix.platform || matrix.os }} binaries
89+ - name : build ${{ matrix.config. platform || matrix.config .os }} binaries
9490 run : cibuildwheel --output-dir wheelhouse
9591 env :
96- CIBW_BUILD : ' ${{ matrix.python-version }}-* '
92+ CIBW_BUILD : ' ${{ matrix.config. python-version }}-${{ matrix.config.name }} '
9793 # rust doesn't seem to be available for musl linux on i686
9894 CIBW_SKIP : ' *-musllinux_i686'
9995 # we build for "alt_arch_name" if it exists, else 'auto'
100- CIBW_ARCHS : ${{ matrix.alt_arch_name || 'auto' }}
96+ CIBW_ARCHS : ${{ matrix.config. alt_arch_name || 'auto' }}
10197 CIBW_ENVIRONMENT : ' PATH="$HOME/.cargo/bin:$PATH" CARGO_TERM_COLOR="always"'
10298 CIBW_ENVIRONMENT_WINDOWS : ' PATH="$UserProfile\.cargo\bin;$PATH"'
99+ # These are needed for Unicorn and cbindgen
100+ CIBW_BEFORE_ALL : >
101+ yum update -y && yum install -y llvm llvm-devel clang clang-devel libtool glib2-devel meson ninja-build bison flex
103102 CIBW_BEFORE_BUILD : rustup show
104103 CIBW_BEFORE_BUILD_LINUX : >
105104 curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y &&
106105 rustup show
107- CIBW_TEST_COMMAND : ' pytest {project}/test'
108- CIBW_TEST_REQUIRES : pytest requests
109- CIBW_TEST_SKIP : ' *-macosx_arm64 *-macosx_universal2:arm64'
106+ # CIBW_TEST_COMMAND: 'pytest {project}/test'
107+ # CIBW_TEST_REQUIRES: pytest requests
108+ # CIBW_TEST_SKIP: '*-macosx_arm64 *-macosx_universal2:arm64'
110109 CIBW_BUILD_VERBOSITY : 1
111110
112- - run : ${{ matrix.ls || 'ls -lh' }} wheelhouse/
111+ - run : ${{ matrix.config. ls || 'ls -lh' }} wheelhouse/
113112
114113 - name : ' 📤 Upload artifact'
115114 uses : actions/upload-artifact@v4
@@ -131,4 +130,4 @@ jobs:
131130 uses : pypa/gh-action-pypi-publish@master
132131 with :
133132 user : __token__
134- password : ${{ secrets.pypi_pass }}
133+ password : ${{ secrets.pypi_pass }}
0 commit comments