Files
wgpu/.github/actions/install-dxc/action.yml

23 lines
894 B
YAML

name: "Install DXC"
description: "Install DXC"
runs:
using: "composite"
steps:
- shell: bash
# NOTE: We ignore the `github-env` lint because we trust:
#
# - The `cygpath` tool
# - The contents of the DXC release we use.
run: | # zizmor: ignore[github-env]
set -e
export DXC_RELEASE="v1.9.2602.24"
export DXC_FILENAME="dxc_2026_05_27.zip"
curl.exe -L --retry 5 https://github.com/microsoft/DirectXShaderCompiler/releases/download/$DXC_RELEASE/$DXC_FILENAME -o dxc.zip
7z.exe e dxc.zip -odxc bin/x64/{dxc.exe,dxcompiler.dll}
# We need to use cygpath to convert PWD to a windows path as we're using bash.
echo "WGPU_DX12_COMPILER=$(cygpath --windows "$PWD/dxc/dxcompiler.dll")" >> "$GITHUB_ENV"
echo "DENO_WEBGPU_DX12_COMPILER=$(cygpath --windows "$PWD/dxc/dxcompiler.dll")" >> "$GITHUB_ENV"