@@ -18,6 +18,7 @@ permissions:
1818env :
1919 PACKAGE_NAME : klaw-dbase
2020 PYTHON_VERSION : " 3.13"
21+ DEPOT_TOKEN : ${{ secrets.DEPOT_TOKEN }}
2122
2223jobs :
2324 linux :
@@ -37,11 +38,14 @@ jobs:
3738 steps :
3839 - uses : actions/checkout@v4
3940
40- - name : Install uv
41- uses : astral-sh/setup-uv@v4
41+ - name : Install Rust toolchain
42+ uses : dtolnay/rust-toolchain@stable
4243
43- - name : Set up Python
44- run : uv python install ${{ env.PYTHON_VERSION }}
44+ - name : Cache Rust dependencies
45+ uses : Swatinem/rust-cache@v2
46+ with :
47+ workspaces : workspaces/rust/klaw-dbase
48+ cache-provider : depot
4549
4650 - name : Build wheels
4751 uses : PyO3/maturin-action@v1
@@ -75,11 +79,14 @@ jobs:
7579 steps :
7680 - uses : actions/checkout@v4
7781
78- - name : Install uv
79- uses : astral-sh/setup-uv@v4
82+ - name : Install Rust toolchain
83+ uses : dtolnay/rust-toolchain@stable
8084
81- - name : Set up Python
82- run : uv python install ${{ env.PYTHON_VERSION }}
85+ - name : Cache Rust dependencies
86+ uses : Swatinem/rust-cache@v2
87+ with :
88+ workspaces : workspaces/rust/klaw-dbase
89+ cache-provider : depot
8390
8491 - name : Build wheels
8592 uses : PyO3/maturin-action@v1
@@ -116,6 +123,15 @@ jobs:
116123 with :
117124 python-version : ${{ env.PYTHON_VERSION }}
118125
126+ - name : Install Rust toolchain
127+ uses : dtolnay/rust-toolchain@stable
128+
129+ - name : Cache Rust dependencies
130+ uses : Swatinem/rust-cache@v2
131+ with :
132+ workspaces : workspaces/rust/klaw-dbase
133+ cache-provider : depot
134+
119135 - name : Build wheels
120136 uses : PyO3/maturin-action@v1
121137 with :
@@ -144,11 +160,13 @@ jobs:
144160 steps :
145161 - uses : actions/checkout@v4
146162
147- - name : Install uv
148- uses : astral-sh/setup-uv@v4
163+ - name : Install Rust toolchain
164+ uses : dtolnay/rust-toolchain@stable
149165
150- - name : Set up Python
151- run : uv python install ${{ env.PYTHON_VERSION }}
166+ - name : Cache Rust dependencies
167+ uses : Swatinem/rust-cache@v2
168+ with :
169+ workspaces : workspaces/rust/klaw-dbase
152170
153171 - name : Build wheels
154172 uses : PyO3/maturin-action@v1
0 commit comments