diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b755682ed..4ba2da6a05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -280,7 +280,10 @@ jobs: for backend in ${{ matrix.backends }}; do echo "======= NATIVE TESTS $backend ======"; - WGPU_BACKEND=$backend METAL_DEVICE_WRAPPER_TYPE=1 cargo llvm-cov --no-cfg-coverage nextest --no-fail-fast --no-report --features vulkan-portability + if ["$backend" == "metal"]; then + echo "METAL_DEVICE_WRAPPER_TYPE=1" >> "$GITHUB_ENV" + fi + WGPU_BACKEND=$backend cargo llvm-cov --no-cfg-coverage nextest --no-fail-fast --no-report --features vulkan-portability done - uses: actions/upload-artifact@v3