yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
42dc521f7
master
1# This is a basic workflow to help you get started with Actions 2 3name : Falcor Compiler Perf-Test 4 5on : 6pull_request : 7branches : [ master ] 8paths-ignore : 9- "docs/**" 10- "LICENSES/**" 11- "LICENSE" 12- "CONTRIBUTING.md" 13- "README.md" 14concurrency : 15group : ${{ github.workflow }}-${{ github.ref }} 16cancel-in-progress : true 17jobs : 18build : 19timeout-minutes : 100 20continue-on-error : false 21strategy : 22fail-fast : false 23matrix : 24os : [ windows ] 25config : [ release ] 26compiler : [ cl ] 27platform : [ x86_64 ] 28include : 29# Self-hosted falcor tests 30- warnings-as-errors : true 31test-category : full 32full-gpu-tests : false 33runs-on : [ Windows , self-hosted , perf ] 34runs-on : ${{ matrix.runs-on }} 35defaults : 36run : 37shell : bash 38steps : 39- uses : actions/checkout@v4 40with : 41submodules : "recursive" 42fetch-depth : "0" 43 44- name : Setup 45uses : ./.github/actions/common-setup 46with : 47os : ${{matrix.os}} 48compiler : ${{matrix.compiler}} 49platform : ${{matrix.platform}} 50config : ${{matrix.config}} 51build-llvm : true 52 53- name : Build Slang 54run : | 55cmake --preset default --fresh \ 56-DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM \ 57-DCMAKE_COMPILE_WARNING_AS_ERROR=${{matrix.warnings-as-errors}} \ 58-DSLANG_ENABLE_CUDA=1 59cmake --workflow --preset "${{matrix.config}}" 60 61- uses : robinraju/release-downloader@v1.12 62id : download 63with : 64# The source repository path. 65# Expected format {owner}/{repo} 66# Default: ${{ github.repository }} 67repository : "shader-slang/falcor-compile-perf-test" 68 69# A flag to set the download target as latest release 70# The default value is 'false' 71latest : true 72 73# The name of the file to download. 74# Use this field only to specify filenames other than tarball or zipball, if any. 75# Supports wildcard pattern (eg: '*', '*.deb', '*.zip' etc..) 76fileName : "falcor_perf_test-*-win-64.zip" 77 78# Relative path under $GITHUB_WORKSPACE to place the downloaded file(s) 79# It will create the target directory automatically if not present 80# eg: out-file-path: "my-downloads" => It will create directory $GITHUB_WORKSPACE/my-downloads 81out-file-path : "falcor-perf-test" 82 83# Somehow there is a bug in this flag, the executable extracted is not runnable. We have to 84# extract ourselves. 85extract : false 86 87- name : run falcor-compiler-perf-test 88shell : pwsh 89run : | 90 $ErrorActionPreference = "Stop" 91 $filename = '${{ fromJson(steps.download.outputs.downloaded_files)[0] }}' 92 # Check if the downloaded file exists 93 if (-not (Test-Path $filename)) { 94 Write-Error "Downloaded file not found: $filename" 95 exit 1 96 } 97 Expand-Archive $filename -DestinationPath .\falcor-perf-test 98 $env:PATH = ".\build\${{matrix.config}}\bin;" + $env:PATH 99 100 # View current PATH 101 Write-Host "PATH is $env:PATH" 102 103 # Run the executable and check exit code 104 Write-Host "Running falcor performance test..." 105 & .\falcor-perf-test\bin\Release\falcor_perftest.exe 106 if ($LASTEXITCODE -ne 0) { 107 Write-Error "falcor_perftest.exe failed with exit code: $LASTEXITCODE" 108 exit $LASTEXITCODE 109 } 110 Write-Host "falcor performance test completed successfully"