From 83971860d8ce1986e512507a3f5b5b4f031cc871 Mon Sep 17 00:00:00 2001 From: Christopher Milan Date: Wed, 10 Jun 2026 19:57:19 -0700 Subject: [PATCH] ci: simplify webgpu install (#16557) --- .github/actions/setup-tinygrad/action.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/actions/setup-tinygrad/action.yml b/.github/actions/setup-tinygrad/action.yml index 162d6530fe..bebbc7f794 100644 --- a/.github/actions/setup-tinygrad/action.yml +++ b/.github/actions/setup-tinygrad/action.yml @@ -187,7 +187,7 @@ runs: fi # **** WebGPU (dependencies for software-based vulkan) **** if [[ "${{ inputs.webgpu }}" == "true" ]]; then - pkgs+=" libgl1 libglx-mesa0 libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers" + pkgs+=" mesa-vulkan-drivers" fi # **** LLVM **** if [[ "${{ inputs.llvm }}" == "true" ]]; then @@ -266,22 +266,18 @@ runs: - name: Install gpuocelot if: inputs.ocelot == 'true' shell: bash - run: sudo curl --output-dir /usr/local/lib -fLO https://github.com/tinygrad/gpuocelot/releases/download/v0.1.0/libgpuocelot.${{ runner.os == 'Linux' && 'so' || 'dylib' }} + run: | + sudo mkdir -p /usr/local/lib + sudo curl --output-dir /usr/local/lib -fLO https://github.com/tinygrad/gpuocelot/releases/download/v0.1.0/libgpuocelot.${{ runner.os == 'Linux' && 'so' || 'dylib' }} # **** WebGPU **** - - name: Install WebGPU dawn (Linux) - if: inputs.webgpu == 'true' && runner.os == 'Linux' + - name: Install WebGPU dawn + if: inputs.webgpu == 'true' shell: bash run: | - sudo curl -fL https://github.com/wpmed92/pydawn/releases/download/v0.1.6/libwebgpu_dawn.so -o /usr/local/lib/libwebgpu_dawn.so - sudo ldconfig - - name: Install WebGPU dawn (macOS) - if: inputs.webgpu == 'true' && runner.os == 'macOS' - shell: bash - run: | - brew tap wpmed92/dawn - brew install dawn + sudo mkdir -p /usr/local/lib + sudo curl --output-dir /usr/local/lib -fLO https://github.com/wpmed92/pydawn/releases/download/v0.1.6/libwebgpu_dawn.${{ runner.os == 'Linux' && 'so' || 'dylib' }} # **** LLVM ****