From 601c8e1a5ead56a8b7cb5cb8c066470c8abeeda8 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Thu, 10 Oct 2024 22:37:55 -0600 Subject: [PATCH] ci: Setup python venv for cargo-zigbuild --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4a84136..4ec720e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -129,7 +129,11 @@ jobs: sudo apt-get -y install ${{ matrix.packages }} - name: Install cargo-zigbuild if: matrix.build == 'zigbuild' - run: pip install ziglang==0.13.0 cargo-zigbuild==0.19.1 + run: | + python3 -m venv .venv + . .venv/bin/activate + echo PATH=$PATH >> $GITHUB_ENV + pip install ziglang==0.13.0 cargo-zigbuild==0.19.1 - name: Setup Rust toolchain uses: dtolnay/rust-toolchain@stable with: