2121 - { runner: macos-13, python_exec: ".venv/bin/python" }
2222 - { runner: windows-latest, python_exec: ".venv\\Scripts\\python" }
2323 runs-on : ${{ matrix.platform.runner }}
24+ env :
25+ RUSTFLAGS : " -C debuginfo=0 -C split-debuginfo=off"
26+ CARGO_INCREMENTAL : " 0"
27+ SCCACHE_GHA_ENABLED : " true"
28+ RUSTC_WRAPPER : " sccache"
29+
2430 steps :
2531 - uses : actions/checkout@v4
32+ with :
33+ fetch-depth : 1
34+
35+ - name : Run sccache-cache
36+ uses :
mozilla-actions/[email protected] 2637
2738 - uses : actions/setup-python@v5
2839 id : setup_python
@@ -31,23 +42,13 @@ jobs:
3142 cache : ' pip'
3243
3344 - run : rustup toolchain install stable --profile minimal
34- - name : Rust Cache
35- uses : Swatinem/rust-cache@v2
36- with :
37- key : rust-${{ matrix.platform.runner }}-${{ matrix.python-version }}
45+
3846 - name : Rust tests (no default features)
3947 run : cargo test --no-default-features --verbose
4048
4149 - name : Rust tests
4250 run : cargo test --verbose
4351
44- - uses : actions/cache@v4
45- with :
46- path : .venv
47- key : pyenv-${{ matrix.platform.runner }}-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('pyproject.toml') }}
48- restore-keys : |
49- pyenv-${{ matrix.platform.runner }}-${{ steps.setup_python.outputs.python-version }}-
50-
5152 - name : Setup venv
5253 run : |
5354 python -m venv .venv
5657 ${{ matrix.platform.python_exec }} -m pip install maturin mypy pytest pytest-asyncio
5758 - name : Python build
5859 run : |
59- ${{ matrix.platform.python_exec }} -m maturin develop -E all
60+ ${{ matrix.platform.python_exec }} -m maturin develop --strip - E all
6061 - name : Python type check (mypy)
6162 run : |
6263 ${{ matrix.platform.python_exec }} -m mypy python
6869 runs-on : ubuntu-latest
6970 steps :
7071 - uses : actions/checkout@v4
72+ with :
73+ fetch-depth : 1
7174 - name : Install Rust toolchain
7275 uses : dtolnay/rust-toolchain@stable
7376 - uses : taiki-e/install-action@v2
0 commit comments