Jamie Nicol 0aa1baface [CI] Install WARP for CTS run
This means we use a reliable version rather than depending on whatever
the worker has installed.
2025-06-17 09:14:44 -04:00

26 lines
678 B
YAML

name: "Install WARP"
description: "Install WARP"
inputs:
target-dirs:
description: "Space-separated list of directories into which to install the WARP DLL."
required: true
runs:
using: "composite"
steps:
- shell: bash
run: |
set -e
export WARP_VERSION="1.0.13"
# Make sure dxc is in path.
dxc --version
curl.exe -L --retry 5 https://www.nuget.org/api/v2/package/Microsoft.Direct3D.WARP/$WARP_VERSION -o warp.zip
7z.exe e warp.zip -owarp build/native/bin/x64/d3d10warp.dll
for dir in ${{ inputs.target-dirs }}; do
mkdir -p "$dir"
cp -v warp/d3d10warp.dll "$dir"
done