yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
42dc521f7
master
1name : Falcor Tests 2 3on : 4pull_request : 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 15jobs : 16build : 17timeout-minutes : 100 18continue-on-error : true 19strategy : 20fail-fast : false 21matrix : 22os : [ windows ] 23config : [ release ] 24compiler : [ cl ] 25platform : [ x86_64 ] 26include : 27# Self-hosted falcor tests 28- warnings-as-errors : true 29test-category : full 30full-gpu-tests : false 31runs-on : [ Windows , self-hosted , falcor ] 32runs-on : ${{ matrix.runs-on }} 33defaults : 34run : 35shell : bash 36steps : 37- uses : actions/checkout@v4 38with : 39submodules : "recursive" 40fetch-depth : "0" 41- name : Setup 42uses : ./.github/actions/common-setup 43with : 44os : ${{matrix.os}} 45compiler : ${{matrix.compiler}} 46platform : ${{matrix.platform}} 47config : ${{matrix.config}} 48build-llvm : true 49- name : setup-falcor 50shell : pwsh 51run : | 52mkdir FalcorBin 53cd FalcorBin 54Copy-Item -Path 'C:\Falcor\build\windows-vs2022\bin' -Destination '.\build\windows-vs2022\bin' -Recurse -Exclude ("*.pdb") 55Copy-Item -Path 'C:\Falcor\tests' -Destination '.\' -Recurse 56Copy-Item -Path 'C:\Falcor\tools' -Destination '.\' -Recurse 57Copy-Item -Path 'C:\Falcor\media' -Destination '.\' -Recurse 58Copy-Item -Path 'C:\Falcor\media_internal' -Destination '.\' -Recurse 59Copy-Item -Path 'C:\Falcor\scripts' -Destination '.\' -Recurse 60cd ..\ 61- name : Build Slang 62run : | 63cmake --preset default --fresh \ 64-DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM \ 65-DCMAKE_COMPILE_WARNING_AS_ERROR=${{matrix.warnings-as-errors}} \ 66-DSLANG_ENABLE_CUDA=1 \ 67-DSLANG_ENABLE_EXAMPLES=0 \ 68-DSLANG_ENABLE_GFX=0 \ 69-DSLANG_ENABLE_TESTS=0 70cmake --workflow --preset "${{matrix.config}}" 71- name : Copy Slang to Falcor 72run : | 73cp --verbose --recursive --target-directory ./FalcorBin/build/windows-vs2022/bin/Release build/Release/bin/* 74- name : falcor-unit-test 75shell : pwsh 76run : | 77$ErrorActionPreference = "SilentlyContinue" 78cd .\FalcorBin\tests 79python ./testing/run_unit_tests.py --config windows-vs2022-Release -t "-slow" 80cd ../../ 81- name : falcor-image-test 82shell : pwsh 83run : | 84 $ErrorActionPreference = "SilentlyContinue" 85 cd .\FalcorBin\tests 86 python ./testing/run_image_tests.py --config windows-vs2022-Release --run-only 87 cd ../../