yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
e554e1b72
master
1name : VK-GL-CTS Nightly 2 3on : 4workflow_dispatch : 5schedule : 6- cron : "00 07 * * *" 7concurrency : 8group : ${{ github.workflow }}-${{ github.ref }} 9cancel-in-progress : true 10env : 11DISABLE_CTS_SLANG : 0 12ACTIONS_RUNNER_DEBUG : true 13ACTIONS_STEP_DEBUG : true 14jobs : 15build : 16strategy : 17matrix : 18include : 19# Self-hosted falcor tests 20- os : windows 21compiler : cl 22platform : x86_64 23config : release 24warnings-as-errors : true 25test-category : full 26full-gpu-tests : false 27runs-on : [ Windows , self-hosted ] 28runs-on : ${{ matrix.runs-on }} 29timeout-minutes : 180 30defaults : 31run : 32shell : bash 33steps : 34- uses : actions/checkout@v4 35with : 36submodules : "true" 37fetch-depth : "0" 38- name : Setup 39uses : ./.github/actions/common-setup 40with : 41os : ${{matrix.os}} 42compiler : ${{matrix.compiler}} 43platform : ${{matrix.platform}} 44config : ${{matrix.config}} 45build-llvm : true 46- name : Build Slang 47run : | 48# Prepare ccache launcher arguments if ccache is available 49cmake_launcher_defines=() 50if [[ -n "${ccache_symlinks_path:-}" ]]; then 51echo "đ§ Using ccache with launcher: ${ccache_symlinks_path}" 52echo "đ§ CCACHE_DIR is set to: ${CCACHE_DIR:-'not set'}" 53cmake_launcher_defines+=("-DCMAKE_C_COMPILER_LAUNCHER=${ccache_symlinks_path}") 54cmake_launcher_defines+=("-DCMAKE_CXX_COMPILER_LAUNCHER=${ccache_symlinks_path}") 55else 56echo "âšī¸ ccache_symlinks_path not set - building without ccache" 57fi 58cmake --preset default --fresh \ 59-DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM \ 60-DCMAKE_COMPILE_WARNING_AS_ERROR=${{matrix.warnings-as-errors}} \ 61-DSLANG_ENABLE_CUDA=1 \ 62-DSLANG_ENABLE_EXAMPLES=0 \ 63-DSLANG_ENABLE_GFX=1 \ 64-DSLANG_ENABLE_TESTS=1 \ 65"${cmake_launcher_defines[@]}" 66cmake --workflow --preset "${{matrix.config}}" 67- uses : robinraju/release-downloader@v1.11 68with : 69latest : true 70repository : "shader-slang/VK-GL-CTS" 71fileName : "VK-GL-CTS_WithSlang-0.0.7-win64.zip" 72- uses : actions/checkout@v4 73with : 74repository : "shader-slang/VK-GL-CTS" 75sparse-checkout : | 76test-lists/slang-passing-tests.txt 77test-lists/slang-waiver-tests.xml 78path : test-lists 79sparse-checkout-cone-mode : false 80- name : vkcts setup 81shell : pwsh 82run : | 83Expand-Archive VK-GL-CTS_WithSlang-0.0.7-win64.zip 84 85copy ${{ github.workspace }}\build\Release\bin\slang.dll ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.7-win64\slang.dll 86copy ${{ github.workspace }}\build\Release\bin\slang-glslang.dll ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.7-win64\slang-glslang.dll 87copy ${{ github.workspace }}\build\Release\bin\slang-glsl-module.dll ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.7-win64\slang-glsl-module.dll 88copy ${{ github.workspace }}\build\Release\bin\test-server.exe ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.7-win64\test-server.exe 89 90copy ${{ github.workspace }}\test-lists\test-lists\slang-passing-tests.txt ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.7-win64\slang-passing-tests.txt 91copy ${{ github.workspace }}\test-lists\test-lists\slang-waiver-tests.xml ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.7-win64\slang-waiver-tests.xml 92 93- name : dump device info 94shell : pwsh 95working-directory : ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.7-win64 96run : | 97.\deqp-vk.exe --deqp-case=dEQP-VK.info.device 98Get-Content -Path TestResults.qpa 99 100- name : vkcts run 101shell : pwsh 102working-directory : ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.7-win64 103run : | 104.\deqp-vk.exe --deqp-archive-dir=${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.7-win64 --deqp-caselist-file=${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.7-win64\slang-passing-tests.txt --deqp-waiver-file=${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.7-win64\slang-waiver-tests.xml 105 106- name : Dump TestResults.qpa if failed 107shell : pwsh 108if : ${{ !success() }} 109working-directory : ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.7-win64 110run : Get-Content TestResults.qpa -Tail 1000 111 112- name : success notification 113id : slack-notify-success 114if : ${{ github.event_name == 'schedule' && success() }} 115uses : slackapi/slack-github-action@v1.26.0 116with : 117payload : | 118{ 119"CTS-Nightly": ":green-check-mark: CTS nightly status: ${{ job.status }}" 120} 121env : 122SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }} 123- name : failure notification 124id : slack-notify-failure 125if : ${{ github.event_name == 'schedule' && !success() }} 126uses : slackapi/slack-github-action@v1.26.0 127with : 128payload : | 129{ 130"CTS-Nightly": ":alert: :alert: :alert: :alert: :alert: :alert:\nCTS nightly status: ${{ job.status }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" 131} 132env : 133SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}