From c1ba4e91d18490c037ba4f7c884677db13464ebe Mon Sep 17 00:00:00 2001 From: Luke Street Date: Thu, 10 Oct 2024 22:39:31 -0600 Subject: [PATCH] ci: Setup python venv for cargo-zigbuild --- .github/workflows/build.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e89f18a..fb12856 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -142,7 +142,11 @@ jobs: uses: actions/checkout@v4 - 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: