CI workflow
CI / wheels (push) Successful in 6m41s
CI / Release (push) Has been skipped

This commit is contained in:
w.pomp
2026-04-17 13:38:45 +02:00
parent 1c289e2f8e
commit c90f811286
+13 -8
View File
@@ -14,13 +14,7 @@ permissions:
jobs:
wheels:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: ubuntu-latest
target: x86_64-unknown-linux-gnu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
@@ -35,7 +29,7 @@ jobs:
fi
shell: bash
- name: Cache Rust and sccache
- name: Setup caching
uses: actions/cache@v4
with:
path: |
@@ -45,6 +39,7 @@ jobs:
~/.cache/pip
~/.cache/pip-wheel
~/.cache/sccache
~/.cache/cargo-xwin
key: rust-cache-${{ matrix.platform.target }}-${{ hashFiles('**/Cargo.lock') }}-${{ runner.os }}-${{ github.ref }}
restore-keys: |
rust-cache-${{ matrix.platform.target }}-${{ runner.os }}-
@@ -69,7 +64,17 @@ jobs:
pip install maturin ziglang
if ! command -v sccache >/dev/null 2>&1; then
cargo install sccache || pip install sccache
fi
shell: bash
- name: Install xwin
run: |
export RUSTUP_HOME="${{ runner.temp }}/rustup"
export CARGO_HOME="${{ runner.temp }}/cargo"
source "$CARGO_HOME/env" 2>/dev/null || true
if ! command -v cargo-xwin >/dev/null 2>&1; then
cargo install cargo-xwin || pip install cargo-xwin
cargo xwin cache xwin
fi
shell: bash