CI workflow
CI / linux (map[runner:ubuntu-latest target:x86_64-unknown-linux-gnu]) (push) Successful in 1m3s
CI / sdist (push) Failing after 8s
CI / Release (push) Has been skipped

This commit is contained in:
w.pomp
2026-04-16 18:26:18 +02:00
parent 1c5e599470
commit 7b16abebb0
2 changed files with 32 additions and 8 deletions
+30 -6
View File
@@ -90,13 +90,37 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build sdist - name: Cache Rust and sccache
uses: PyO3/maturin-action@v1 uses: actions/cache@v4
with: with:
command: sdist path: |
args: --out dist ${{ runner.temp }}/cargo
- name: Upload sdist ${{ runner.temp }}/rustup
uses: actions/upload-artifact@v4 ~/.cache/pip
~/.cache/pip-wheel
~/.cache/sccache
key: rust-cache-${{ matrix.platform.target }}-${{ hashFiles('**/Cargo.lock') }}-${{ runner.os }}-${{ github.ref }}
restore-keys: |
rust-cache-${{ matrix.platform.target }}-${{ runner.os }}-
rust-cache-${{ runner.os }}-
- name: Install sccache and maturin
run: |
python -m pip install --upgrade pip
pip install maturin
if ! command -v sccache >/dev/null 2>&1; then
cargo install sccache || pip install sccache
fi
shell: bash
- name: Build wheels
run: |
export CARGO_HOME="${{ runner.temp }}/cargo"
export PATH="$CARGO_HOME/bin:$PATH"
maturin sdist --out dist
- name: Upload wheels
uses: actions/upload-artifact@v3.2.2
with: with:
name: wheels-sdist name: wheels-sdist
path: dist path: dist
+1 -1
View File
@@ -24,7 +24,7 @@ indicatif = { version = "0.18", features = ["rayon"] }
kmeans = "2" kmeans = "2"
ndarray = "0.17" ndarray = "0.17"
numpy = "0.28" numpy = "0.28"
pyo3 = { version = "0.28", features = ["abi3-py310", "anyhow", "eyre"] } pyo3 = { version = "0.28", features = ["abi3-py310", "anyhow", "eyre", "generate-import-lib"] }
pyo3-stub-gen = "0.22" pyo3-stub-gen = "0.22"
rayon = "1" rayon = "1"
thiserror = "2" thiserror = "2"