From 5acbad4f0fb667f855d4fd795757535bc7a5d6d0 Mon Sep 17 00:00:00 2001 From: terraputix Date: Fri, 10 Apr 2026 22:28:46 +0200 Subject: [PATCH 1/3] do not build in container during PR --- .github/workflows/ci-pr.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index d8e4c10..8211879 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -31,8 +31,7 @@ jobs: 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 From 41acb78753fe513ffe898958cbc42dc9d926dd5b Mon Sep 17 00:00:00 2001 From: terraputix Date: Fri, 10 Apr 2026 22:41:43 +0200 Subject: [PATCH 2/3] try to improve cache efficiency --- .github/actions/cache-rust-build/action.yml | 6 +++++- .github/workflows/ci-pr.yml | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) 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/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 8211879..8e96a2a 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -27,6 +27,8 @@ 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 From 8eee76a1256dd35999e5021c41ba8e62e13c5dc4 Mon Sep 17 00:00:00 2001 From: terraputix Date: Fri, 10 Apr 2026 22:44:43 +0200 Subject: [PATCH 3/3] disable cache pruning --- .github/actions/install-uv/action.yml | 1 + 1 file changed, 1 insertion(+) 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 }}