Skip to content

Commit 9076556

Browse files
committed
ci: Use uv tool instead of venv
1 parent 227ef28 commit 9076556

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,12 @@ jobs:
146146
steps:
147147
- name: Checkout
148148
uses: actions/checkout@v4
149+
- name: Install uv
150+
if: matrix.build == 'zigbuild'
151+
uses: astral-sh/setup-uv@v6
149152
- name: Install cargo-zigbuild
150153
if: matrix.build == 'zigbuild'
151-
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
154+
run: uv tool install cargo-zigbuild==0.20.1 --with ziglang==0.15.1
156155
- name: Setup Rust toolchain
157156
uses: dtolnay/rust-toolchain@stable
158157
with:
@@ -213,13 +212,12 @@ jobs:
213212
sudo apt-get -y install ${{ matrix.packages }}
214213
- name: Checkout
215214
uses: actions/checkout@v4
215+
- name: Install uv
216+
if: matrix.build == 'zigbuild'
217+
uses: astral-sh/setup-uv@v6
216218
- name: Install cargo-zigbuild
217219
if: matrix.build == 'zigbuild'
218-
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
220+
run: uv tool install cargo-zigbuild==0.20.1 --with ziglang==0.15.1
223221
- name: Setup Rust toolchain
224222
uses: dtolnay/rust-toolchain@stable
225223
with:

0 commit comments

Comments
 (0)