yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
1f1892d03
master
1name : Push MDL Benchmark Results 2 3on : 4push : 5branches : [ master ] 6paths-ignore : 7- "docs/**" 8- "LICENSES/**" 9- "LICENSE" 10- "CONTRIBUTING.md" 11- "README.md" 12concurrency : 13group : ${{ github.workflow }}-${{ github.ref }} 14cancel-in-progress : true 15 16jobs : 17build : 18runs-on : [ Windows , benchmark , self-hosted ] 19steps : 20- uses : actions/checkout@v4 21with : 22submodules : "true" 23fetch-depth : "0" 24- name : Common setup 25uses : ./.github/actions/common-setup 26with : 27os : windows 28compiler : cl 29platform : x86_64 30config : release 31build-llvm : true 32- name : Build Slang 33run : | 34cmake --preset default --fresh -DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM -DCMAKE_COMPILE_WARNING_AS_ERROR=false 35cmake --workflow --preset release 36- uses : actions/checkout@v4 37with : 38repository : "shader-slang/MDL-SDK" 39path : "external/MDL-SDK" 40sparse-checkout : | 41./examples/mdl_sdk/dxr/content/slangified 42- name : Run benchmark 43run : | 44cd tools/benchmark 45cp ../../external/MDL-SDK/examples/mdl_sdk/dxr/content/slangified/*.slang . 46pip install prettytable argparse 47python compile.py --samples 16 --target dxil 48- uses : actions/checkout@v4 49with : 50repository : "shader-slang/slang-material-modules-benchmark" 51path : "external/slang-material-modules-benchmark" 52token : ${{ secrets.SLANG_MDL_BENCHMARK_RESULTS_PAT }} 53- name : Push results 54run : | 55 cp tools/benchmark/benchmarks.json external\slang-material-modules-benchmark 56 echo $(Invoke-Expression "git log -1 --pretty=%s") > external\slang-material-modules-benchmark\commit 57 echo $(Invoke-Expression "git log -1 --pretty=%H") > external\slang-material-modules-benchmark\commit-hash 58 echo $(Invoke-Expression "git log -1 --pretty=%s") > external\slang-material-modules-benchmark\current 59 echo $(Invoke-Expression "git log -1 --pretty=%H") >> external\slang-material-modules-benchmark\current 60 cd external\slang-material-modules-benchmark 61 ls 62 git add benchmarks.json current 63 git commit -m "$(cat commit)" -m "https://github.com/shader-slang/slang/commit/$(cat commit-hash)" 64 git log 65 git push