mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
26 lines
697 B
YAML
26 lines
697 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 ${{ inputs.target-dirs }}
|
|
cp -v warp/d3d10warp.dll "$dir"
|
|
done
|