@@ -146,13 +146,14 @@ jobs:
146
146
steps :
147
147
- name : Checkout
148
148
uses : actions/checkout@v4
149
+ - name : Install uv
150
+ if : matrix.build == 'zigbuild'
151
+ uses : astral-sh/setup-uv@v6
149
152
- name : Install cargo-zigbuild
150
153
if : matrix.build == 'zigbuild'
151
154
run : |
152
- python3 -m venv .venv
153
- . .venv/bin/activate
154
- echo PATH=$PATH >> $GITHUB_ENV
155
- pip install ziglang==0.13.0.post1 cargo-zigbuild==0.19.8
155
+ uv tool install cargo-zigbuild==0.20.1 --with-executables-from ziglang==0.15.1
156
+ echo "CARGO_ZIGBUILD_ZIG_PATH=\"$(uv tool dir)/cargo-zigbuild/bin/python-zig\"" >> $GITHUB_ENV
156
157
- name : Setup Rust toolchain
157
158
uses : dtolnay/rust-toolchain@stable
158
159
with :
@@ -213,13 +214,14 @@ jobs:
213
214
sudo apt-get -y install ${{ matrix.packages }}
214
215
- name : Checkout
215
216
uses : actions/checkout@v4
217
+ - name : Install uv
218
+ if : matrix.build == 'zigbuild'
219
+ uses : astral-sh/setup-uv@v6
216
220
- name : Install cargo-zigbuild
217
221
if : matrix.build == 'zigbuild'
218
222
run : |
219
- python3 -m venv .venv
220
- . .venv/bin/activate
221
- echo PATH=$PATH >> $GITHUB_ENV
222
- pip install ziglang==0.13.0.post1 cargo-zigbuild==0.19.8
223
+ uv tool install cargo-zigbuild==0.20.1 --with-executables-from ziglang==0.15.1
224
+ echo "CARGO_ZIGBUILD_ZIG_PATH=\"$(uv tool dir)/cargo-zigbuild/bin/python-zig\"" >> $GITHUB_ENV
223
225
- name : Setup Rust toolchain
224
226
uses : dtolnay/rust-toolchain@stable
225
227
with :
0 commit comments