File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,28 +18,14 @@ jobs:
1818 - uses : Swatinem/rust-cache@v2
1919 - uses : taiki-e/install-action@cargo-make
2020
21- # Setup Python before Rust CI so libpython is available for the build script
21+ - name : Run Rust CI
22+ run : cargo make check-all
23+
2224 - name : Setup python
2325 uses : actions/setup-python@v5
2426 with :
2527 python-version : ${{ matrix.python-version }}
2628
27- - name : Configure Python for linking
28- run : |
29- PYTHON_LIBDIR=$(python -c 'import sysconfig; print(sysconfig.get_config_var("LIBDIR"))')
30- PYTHON_VER=$(python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')
31- # The tool-cache Python only ships libpython3.x.so.1.0; create the dev symlink for -lpython3.x
32- if [ ! -f "${PYTHON_LIBDIR}/libpython${PYTHON_VER}.so" ]; then
33- ln -sf "${PYTHON_LIBDIR}/libpython${PYTHON_VER}.so.1.0" \
34- "${PYTHON_LIBDIR}/libpython${PYTHON_VER}.so"
35- fi
36- echo "LIBRARY_PATH=${PYTHON_LIBDIR}${LIBRARY_PATH:+:${LIBRARY_PATH}}" >> $GITHUB_ENV
37- echo "LD_LIBRARY_PATH=${PYTHON_LIBDIR}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}" >> $GITHUB_ENV
38- echo "PYO3_PYTHON=$(which python)" >> $GITHUB_ENV
39-
40- - name : Run Rust CI
41- run : cargo make check-all
42-
4329 - name : Install poetry
4430 uses : abatilo/actions-poetry@v4
4531
You can’t perform that action at this time.
0 commit comments