diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 2937d3694..5c6a13041 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -78,23 +78,30 @@ jobs: target: [x86_64] steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - name: Install Python dependencies + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + target: x86_64-unknown-linux-gnu + - name: Install dependencies run: | python -m pip install --user cffi python -m pip install --user patchelf + rustup component add rustfmt - name: Build wheels uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} manylinux: "2014" - container: "quay.io/pypa/manylinux2014_x86_64" - args: --release --out dist + args: --release --out dist --find-interpreter sccache: 'true' - env: - RUSTFLAGS: "--cfg pyo3_no_local_impl" + before-script-linux: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + source $HOME/.cargo/env + rustup component add rustfmt - name: Upload wheels uses: actions/upload-artifact@v3 with: