diff --git a/.github/actions/cache-rust-build/action.yml b/.github/actions/cache-rust-build/action.yml index 309dc62..a8e6b90 100644 --- a/.github/actions/cache-rust-build/action.yml +++ b/.github/actions/cache-rust-build/action.yml @@ -1,5 +1,9 @@ name: Cache Rust build description: Caches Rust build artifacts and dependencies +inputs: + key-postfix: + required: false + default: "" runs: using: "composite" steps: @@ -10,6 +14,6 @@ runs: target ~/.cargo/registry ~/.cargo/git - key: ${{ runner.os }}-test-${{ runner.arch }}-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml') }} + key: ${{ runner.os }}-test-${{ runner.arch }}-${{inputs.key-postfix}}-${{ hashFiles('**/Cargo.lock', '**/Cargo.toml') }} restore-keys: | ${{ runner.os }}-test-${{ runner.arch }}- diff --git a/.github/actions/install-uv/action.yml b/.github/actions/install-uv/action.yml index 0188f17..e4d87ea 100644 --- a/.github/actions/install-uv/action.yml +++ b/.github/actions/install-uv/action.yml @@ -13,5 +13,6 @@ runs: with: version: "0.9.11" enable-cache: true + prune-cache: false cache-dependency-glob: "**/uv.lock" python-version: ${{ inputs.python-version }} diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index d8e4c10..8e96a2a 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -27,12 +27,13 @@ jobs: steps: - uses: actions/checkout@v6 - uses: ./.github/actions/cache-rust-build + with: + key-postfix: build-wheel - uses: ./.github/actions/build-wheel with: target: x86_64-unknown-linux-gnu args: --release --out dist - manylinux: "2_28" - before-script-linux: python3 -m ensurepip && cat /etc/os-release && yum install clang -y + maturin-container: off - uses: ./.github/actions/upload-wheels with: name: wheels-pr-linux-x86_64