From 91f8e7dea06342e9723dd51ea68cbaf0c10b2fca Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Mon, 14 Oct 2024 10:26:22 +0200 Subject: [PATCH] use pixi environment for cargo test --- .github/workflows/reusable_checks_rust.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable_checks_rust.yml b/.github/workflows/reusable_checks_rust.yml index 57dd6e587a1f..db1b60173f60 100644 --- a/.github/workflows/reusable_checks_rust.yml +++ b/.github/workflows/reusable_checks_rust.yml @@ -100,5 +100,10 @@ jobs: workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }} service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }} - - name: cargo test --all-targets --all-features - run: cargo test --all-targets --all-features + # Building with `--all-features` requires extra build tools like `nasm`. + - uses: prefix-dev/setup-pixi@v0.8.1 + with: + pixi-version: v0.25.0 + + - name: pixi run cargo test --all-targets --all-features + run: pixi run cargo test --all-targets --all-features