From 802d045c209922f29cdad2f1d52e8a2bf9f3a6b4 Mon Sep 17 00:00:00 2001 From: "w.pomp" Date: Fri, 17 Apr 2026 14:27:05 +0200 Subject: [PATCH] CI workflow --- .github/workflows/CI.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 920f4e9..103b4f1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -21,8 +21,8 @@ jobs: with: python-version: 3.x - - name: Setup caching - uses: actions/cache@v4 + - name: Restore cache + uses: actions/cache/restore@v4 with: path: | /var/cache/apt @@ -85,6 +85,7 @@ jobs: export PATH="$HOME/.cargo/bin:$HOME/.osxcross/bin:$PATH" maturin sdist --out dist rustup default nightly + rustup target add x86_64-unknown-linux-gnu --toolchain nightly maturin build --release --out dist --target x86_64-unknown-linux-gnu rustup target add aarch64-unknown-linux-gnu --toolchain nightly @@ -100,6 +101,19 @@ jobs: rustup target add aarch64-apple-darwin --toolchain nightly maturin build --release --out dist --target aarch64-apple-darwin --zig + - name: Store cache + uses: actions/cache/save@v4 + with: + path: | + /var/cache/apt + ~/.cache/pip + ~/.cache/pip-wheel + ~/.cache/sccache + ~/.cache/cargo-xwin + ~/.cargo + ~/.osxcross + key: cache-ubuntu-maturin-cross-compile + - name: Upload wheels uses: actions/upload-artifact@v3.2.2 with: