diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-10-30 13:45:53 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-30 13:45:53 +0800 |
| commit | 22d1e345037eea853e54b84af718340cb9776513 (patch) | |
| tree | e63754ab1e7c7f6c95d75ff5bc785b9afdbd54b4 /.github | |
| parent | 44dc5ea202ac43cd4f18c268e95143c2a23f5d26 (diff) | |
format yaml and json (#5428)
* format yaml and json
* format shell scripts
Diffstat (limited to '.github')
| -rw-r--r-- | .github/actions/format-setup/action.yml | 16 | ||||
| -rw-r--r-- | .github/workflows/benchmark.yml | 24 | ||||
| -rw-r--r-- | .github/workflows/ci.yml | 20 | ||||
| -rw-r--r-- | .github/workflows/compile-regression-test.yml | 70 | ||||
| -rw-r--r-- | .github/workflows/ensure-pr-label.yml | 10 | ||||
| -rw-r--r-- | .github/workflows/falcor-compiler-perf-test.yml | 118 | ||||
| -rw-r--r-- | .github/workflows/falcor-test.yml | 122 | ||||
| -rw-r--r-- | .github/workflows/push-benchmark-results.yml | 20 | ||||
| -rw-r--r-- | .github/workflows/release-linux-glibc-2-17.yml | 6 | ||||
| -rw-r--r-- | .github/workflows/release.yml | 31 | ||||
| -rw-r--r-- | .github/workflows/slash-command-dispatch.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/vk-gl-cts-nightly.yml | 156 |
12 files changed, 305 insertions, 290 deletions
diff --git a/.github/actions/format-setup/action.yml b/.github/actions/format-setup/action.yml index d99be4d3a..1028ce6bb 100644 --- a/.github/actions/format-setup/action.yml +++ b/.github/actions/format-setup/action.yml @@ -19,3 +19,19 @@ runs: https://github.com/shader-slang/slang-binaries/raw/306d22efc0f5f72c7230b0b6b7c99f03c46995bd/clang-format/x86_64-linux/bin/clang-format chmod +x "$tmpdir/clang-format" echo "$tmpdir" >> $GITHUB_PATH + + - name: install prettier + shell: bash + run: | + npm install -g prettier@3.3.3 + echo "$(npm bin -g)" >> $GITHUB_PATH + + - name: install shfmt + shell: bash + run: | + tmpdir=$(mktemp -d) + curl -L -H "Authorization: token ${{github.token}}" \ + -o "$tmpdir/shfmt" \ + https://github.com/mvdan/sh/releases/download/v3.10.0/shfmt_v3.10.0_linux_amd64 + chmod +x "$tmpdir/shfmt" + echo "$tmpdir" >> $GITHUB_PATH diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index eb90492f3..245667b46 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -4,17 +4,17 @@ on: push: branches: [master] paths-ignore: - - 'docs/**' - - 'LICENCE' - - 'CONTRIBUTION.md' - - 'README.md' + - "docs/**" + - "LICENCE" + - "CONTRIBUTION.md" + - "README.md" pull_request: branches: [master] paths-ignore: - - 'docs/**' - - 'LICENCE' - - 'CONTRIBUTION.md' - - 'README.md' + - "docs/**" + - "LICENCE" + - "CONTRIBUTION.md" + - "README.md" concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -25,8 +25,8 @@ jobs: steps: - uses: actions/checkout@v3 with: - submodules: 'recursive' - fetch-depth: '0' + submodules: "recursive" + fetch-depth: "0" - name: Common setup uses: ./.github/actions/common-setup with: @@ -41,8 +41,8 @@ jobs: cmake --workflow --preset release - uses: actions/checkout@v3 with: - repository: 'shader-slang/MDL-SDK' - path: 'external/MDL-SDK' + repository: "shader-slang/MDL-SDK" + path: "external/MDL-SDK" - name: Run benchmark run: | cd tools/benchmark diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f0aa2d93..56e1df6b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,17 +4,17 @@ on: push: branches: [master] paths-ignore: - - 'docs/**' - - 'LICENCE' - - 'CONTRIBUTION.md' - - 'README.md' + - "docs/**" + - "LICENCE" + - "CONTRIBUTION.md" + - "README.md" pull_request: branches: [master] paths-ignore: - - 'docs/**' - - 'LICENCE' - - 'CONTRIBUTION.md' - - 'README.md' + - "docs/**" + - "LICENCE" + - "CONTRIBUTION.md" + - "README.md" concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -87,8 +87,8 @@ jobs: steps: - uses: actions/checkout@v3 with: - submodules: 'recursive' - fetch-depth: '0' + submodules: "recursive" + fetch-depth: "0" - name: Setup uses: ./.github/actions/common-setup with: diff --git a/.github/workflows/compile-regression-test.yml b/.github/workflows/compile-regression-test.yml index f1809ea71..da5656d7f 100644 --- a/.github/workflows/compile-regression-test.yml +++ b/.github/workflows/compile-regression-test.yml @@ -2,19 +2,19 @@ name: Compile Regression-Test on: push: - branches: [ master ] + branches: [master] paths-ignore: - - 'docs/**' - - 'LICENCE' - - 'CONTRIBUTION.md' - - 'README.md' + - "docs/**" + - "LICENCE" + - "CONTRIBUTION.md" + - "README.md" pull_request: - branches: [ master ] + branches: [master] paths-ignore: - - 'docs/**' - - 'LICENCE' - - 'CONTRIBUTION.md' - - 'README.md' + - "docs/**" + - "LICENCE" + - "CONTRIBUTION.md" + - "README.md" concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -40,28 +40,28 @@ jobs: run: shell: bash steps: - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - fetch-depth: '0' - - name: Setup - uses: ./.github/actions/common-setup - with: - os: ${{matrix.os}} - compiler: ${{matrix.compiler}} - platform: ${{matrix.platform}} - config: ${{matrix.config}} - build-llvm: true - - name: Build Slang - run: | - cmake --preset default --fresh \ - -DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM \ - -DCMAKE_COMPILE_WARNING_AS_ERROR=${{matrix.warnings-as-errors}} \ - -DSLANG_ENABLE_CUDA=1 - cmake --workflow --preset "${{matrix.config}}" - - name: Run compile and validation test - run: | - cp -r /c/slang_compile_test_suite_a . - cd slang_compile_test_suite_a - export SLANGC_PATH="$bin_dir/slangc.exe" - bash ./compile_all_slang.sh + - uses: actions/checkout@v3 + with: + submodules: "recursive" + fetch-depth: "0" + - name: Setup + uses: ./.github/actions/common-setup + with: + os: ${{matrix.os}} + compiler: ${{matrix.compiler}} + platform: ${{matrix.platform}} + config: ${{matrix.config}} + build-llvm: true + - name: Build Slang + run: | + cmake --preset default --fresh \ + -DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM \ + -DCMAKE_COMPILE_WARNING_AS_ERROR=${{matrix.warnings-as-errors}} \ + -DSLANG_ENABLE_CUDA=1 + cmake --workflow --preset "${{matrix.config}}" + - name: Run compile and validation test + run: | + cp -r /c/slang_compile_test_suite_a . + cd slang_compile_test_suite_a + export SLANGC_PATH="$bin_dir/slangc.exe" + bash ./compile_all_slang.sh diff --git a/.github/workflows/ensure-pr-label.yml b/.github/workflows/ensure-pr-label.yml index 8db5b6057..cf5215063 100644 --- a/.github/workflows/ensure-pr-label.yml +++ b/.github/workflows/ensure-pr-label.yml @@ -3,10 +3,10 @@ on: pull_request: types: [opened, labeled, unlabeled, synchronize] paths-ignore: - - 'docs/**' - - 'LICENCE' - - 'CONTRIBUTION.md' - - 'README.md' + - "docs/**" + - "LICENCE" + - "CONTRIBUTION.md" + - "README.md" jobs: label: runs-on: ubuntu-latest @@ -20,4 +20,4 @@ jobs: count: 1 labels: | pr: non-breaking - pr: breaking change
\ No newline at end of file + pr: breaking change diff --git a/.github/workflows/falcor-compiler-perf-test.yml b/.github/workflows/falcor-compiler-perf-test.yml index d329642d9..8de8035fa 100644 --- a/.github/workflows/falcor-compiler-perf-test.yml +++ b/.github/workflows/falcor-compiler-perf-test.yml @@ -4,19 +4,19 @@ name: Falcor Compiler Perf-Test on: push: - branches: [ master ] + branches: [master] paths-ignore: - - 'docs/**' - - 'LICENCE' - - 'CONTRIBUTION.md' - - 'README.md' + - "docs/**" + - "LICENCE" + - "CONTRIBUTION.md" + - "README.md" pull_request: - branches: [ master ] + branches: [master] paths-ignore: - - 'docs/**' - - 'LICENCE' - - 'CONTRIBUTION.md' - - 'README.md' + - "docs/**" + - "LICENCE" + - "CONTRIBUTION.md" + - "README.md" concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -42,61 +42,61 @@ jobs: run: shell: bash steps: - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - fetch-depth: '0' + - uses: actions/checkout@v3 + with: + submodules: "recursive" + fetch-depth: "0" - - name: Setup - uses: ./.github/actions/common-setup - with: - os: ${{matrix.os}} - compiler: ${{matrix.compiler}} - platform: ${{matrix.platform}} - config: ${{matrix.config}} - build-llvm: true + - name: Setup + uses: ./.github/actions/common-setup + with: + os: ${{matrix.os}} + compiler: ${{matrix.compiler}} + platform: ${{matrix.platform}} + config: ${{matrix.config}} + build-llvm: true - - name: Build Slang - run: | - cmake --preset default --fresh \ - -DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM \ - -DCMAKE_COMPILE_WARNING_AS_ERROR=${{matrix.warnings-as-errors}} \ - -DSLANG_ENABLE_CUDA=1 - cmake --workflow --preset "${{matrix.config}}" + - name: Build Slang + run: | + cmake --preset default --fresh \ + -DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM \ + -DCMAKE_COMPILE_WARNING_AS_ERROR=${{matrix.warnings-as-errors}} \ + -DSLANG_ENABLE_CUDA=1 + cmake --workflow --preset "${{matrix.config}}" - - uses: robinraju/release-downloader@v1.9 - id: download - with: - # The source repository path. - # Expected format {owner}/{repo} - # Default: ${{ github.repository }} - repository: "shader-slang/falcor-compile-perf-test" + - uses: robinraju/release-downloader@v1.9 + id: download + with: + # The source repository path. + # Expected format {owner}/{repo} + # Default: ${{ github.repository }} + repository: "shader-slang/falcor-compile-perf-test" - # A flag to set the download target as latest release - # The default value is 'false' - latest: true + # A flag to set the download target as latest release + # The default value is 'false' + latest: true - # The name of the file to download. - # Use this field only to specify filenames other than tarball or zipball, if any. - # Supports wildcard pattern (eg: '*', '*.deb', '*.zip' etc..) - fileName: "falcor_perf_test-*-win-64.zip" + # The name of the file to download. + # Use this field only to specify filenames other than tarball or zipball, if any. + # Supports wildcard pattern (eg: '*', '*.deb', '*.zip' etc..) + fileName: "falcor_perf_test-*-win-64.zip" - # Download the attached zipball (*.zip) - zipBall: true + # Download the attached zipball (*.zip) + zipBall: true - # Relative path under $GITHUB_WORKSPACE to place the downloaded file(s) - # It will create the target directory automatically if not present - # eg: out-file-path: "my-downloads" => It will create directory $GITHUB_WORKSPACE/my-downloads - out-file-path: "./falcor-perf-test" + # Relative path under $GITHUB_WORKSPACE to place the downloaded file(s) + # It will create the target directory automatically if not present + # eg: out-file-path: "my-downloads" => It will create directory $GITHUB_WORKSPACE/my-downloads + out-file-path: "./falcor-perf-test" - # Somehow there is a bug in this flag, the executable extracted is not runnable. We have to - # extract ourselves. - extract: false + # Somehow there is a bug in this flag, the executable extracted is not runnable. We have to + # extract ourselves. + extract: false - - name: run falcor-compiler-perf-test - shell: pwsh - run: | - $filename = '${{ fromJson(steps.download.outputs.downloaded_files)[0] }}' - Expand-Archive $filename -DestinationPath .\falcor-perf-test - $env:PATH += ";.\build\${{matrix.config}}\bin"; - .\falcor-perf-test\bin\Release\falcor_perftest.exe + - name: run falcor-compiler-perf-test + shell: pwsh + run: | + $filename = '${{ fromJson(steps.download.outputs.downloaded_files)[0] }}' + Expand-Archive $filename -DestinationPath .\falcor-perf-test + $env:PATH += ";.\build\${{matrix.config}}\bin"; + .\falcor-perf-test\bin\Release\falcor_perftest.exe diff --git a/.github/workflows/falcor-test.yml b/.github/workflows/falcor-test.yml index bb5faeddc..d4fa4f962 100644 --- a/.github/workflows/falcor-test.yml +++ b/.github/workflows/falcor-test.yml @@ -2,19 +2,19 @@ name: Falcor Tests on: push: - branches: [ master ] + branches: [master] paths-ignore: - - 'docs/**' - - 'LICENCE' - - 'CONTRIBUTION.md' - - 'README.md' + - "docs/**" + - "LICENCE" + - "CONTRIBUTION.md" + - "README.md" pull_request: - branches: [ master ] + branches: [master] paths-ignore: - - 'docs/**' - - 'LICENCE' - - 'CONTRIBUTION.md' - - 'README.md' + - "docs/**" + - "LICENCE" + - "CONTRIBUTION.md" + - "README.md" concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -40,54 +40,54 @@ jobs: run: shell: bash steps: - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - fetch-depth: '0' - - name: Setup - uses: ./.github/actions/common-setup - with: - os: ${{matrix.os}} - compiler: ${{matrix.compiler}} - platform: ${{matrix.platform}} - config: ${{matrix.config}} - build-llvm: true - - name: setup-falcor - shell: pwsh - run: | - mkdir FalcorBin - cd FalcorBin - Copy-Item -Path 'C:\Falcor\build\windows-vs2022\bin' -Destination '.\build\windows-vs2022\bin' -Recurse -Exclude ("*.pdb") - Copy-Item -Path 'C:\Falcor\tests' -Destination '.\' -Recurse - Copy-Item -Path 'C:\Falcor\tools' -Destination '.\' -Recurse - Copy-Item -Path 'C:\Falcor\media' -Destination '.\' -Recurse - Copy-Item -Path 'C:\Falcor\media_internal' -Destination '.\' -Recurse - Copy-Item -Path 'C:\Falcor\scripts' -Destination '.\' -Recurse - cd ..\ - - name: Build Slang - run: | - cmake --preset default --fresh \ - -DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM \ - -DCMAKE_COMPILE_WARNING_AS_ERROR=${{matrix.warnings-as-errors}} \ - -DSLANG_ENABLE_CUDA=1 \ - -DSLANG_ENABLE_EXAMPLES=0 \ - -DSLANG_ENABLE_GFX=0 \ - -DSLANG_ENABLE_TESTS=0 - cmake --workflow --preset "${{matrix.config}}" - - name: Copy Slang to Falcor - run: | - cp --verbose --recursive --target-directory ./FalcorBin/build/windows-vs2022/bin/Release build/Release/bin/* - - name: falcor-unit-test - shell: pwsh - run: | - $ErrorActionPreference = "SilentlyContinue" - cd .\FalcorBin\tests - python ./testing/run_unit_tests.py --config windows-vs2022-Release -t "-slow" - cd ../../ - - name: falcor-image-test - shell: pwsh - run: | - $ErrorActionPreference = "SilentlyContinue" - cd .\FalcorBin\tests - python ./testing/run_image_tests.py --config windows-vs2022-Release --run-only - cd ../../ + - uses: actions/checkout@v3 + with: + submodules: "recursive" + fetch-depth: "0" + - name: Setup + uses: ./.github/actions/common-setup + with: + os: ${{matrix.os}} + compiler: ${{matrix.compiler}} + platform: ${{matrix.platform}} + config: ${{matrix.config}} + build-llvm: true + - name: setup-falcor + shell: pwsh + run: | + mkdir FalcorBin + cd FalcorBin + Copy-Item -Path 'C:\Falcor\build\windows-vs2022\bin' -Destination '.\build\windows-vs2022\bin' -Recurse -Exclude ("*.pdb") + Copy-Item -Path 'C:\Falcor\tests' -Destination '.\' -Recurse + Copy-Item -Path 'C:\Falcor\tools' -Destination '.\' -Recurse + Copy-Item -Path 'C:\Falcor\media' -Destination '.\' -Recurse + Copy-Item -Path 'C:\Falcor\media_internal' -Destination '.\' -Recurse + Copy-Item -Path 'C:\Falcor\scripts' -Destination '.\' -Recurse + cd ..\ + - name: Build Slang + run: | + cmake --preset default --fresh \ + -DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM \ + -DCMAKE_COMPILE_WARNING_AS_ERROR=${{matrix.warnings-as-errors}} \ + -DSLANG_ENABLE_CUDA=1 \ + -DSLANG_ENABLE_EXAMPLES=0 \ + -DSLANG_ENABLE_GFX=0 \ + -DSLANG_ENABLE_TESTS=0 + cmake --workflow --preset "${{matrix.config}}" + - name: Copy Slang to Falcor + run: | + cp --verbose --recursive --target-directory ./FalcorBin/build/windows-vs2022/bin/Release build/Release/bin/* + - name: falcor-unit-test + shell: pwsh + run: | + $ErrorActionPreference = "SilentlyContinue" + cd .\FalcorBin\tests + python ./testing/run_unit_tests.py --config windows-vs2022-Release -t "-slow" + cd ../../ + - name: falcor-image-test + shell: pwsh + run: | + $ErrorActionPreference = "SilentlyContinue" + cd .\FalcorBin\tests + python ./testing/run_image_tests.py --config windows-vs2022-Release --run-only + cd ../../ diff --git a/.github/workflows/push-benchmark-results.yml b/.github/workflows/push-benchmark-results.yml index 6eab76816..b2c835768 100644 --- a/.github/workflows/push-benchmark-results.yml +++ b/.github/workflows/push-benchmark-results.yml @@ -4,10 +4,10 @@ on: push: branches: [master] paths-ignore: - - 'docs/**' - - 'LICENCE' - - 'CONTRIBUTION.md' - - 'README.md' + - "docs/**" + - "LICENCE" + - "CONTRIBUTION.md" + - "README.md" concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -18,8 +18,8 @@ jobs: steps: - uses: actions/checkout@v3 with: - submodules: 'true' - fetch-depth: '0' + submodules: "true" + fetch-depth: "0" - name: Common setup uses: ./.github/actions/common-setup with: @@ -34,8 +34,8 @@ jobs: cmake --workflow --preset release - uses: actions/checkout@v3 with: - repository: 'shader-slang/MDL-SDK' - path: 'external/MDL-SDK' + repository: "shader-slang/MDL-SDK" + path: "external/MDL-SDK" - name: Run benchmark run: | cd tools/benchmark @@ -44,8 +44,8 @@ jobs: python compile.py --samples 16 --target dxil - uses: actions/checkout@v3 with: - repository: 'shader-slang/slang-material-modules-benchmark' - path: 'external/slang-material-modules-benchmark' + repository: "shader-slang/slang-material-modules-benchmark" + path: "external/slang-material-modules-benchmark" token: ${{ secrets.SLANG_MDL_BENCHMARK_RESULTS_PAT }} - name: Push results run: | diff --git a/.github/workflows/release-linux-glibc-2-17.yml b/.github/workflows/release-linux-glibc-2-17.yml index e3f47d9a9..7341e1d92 100644 --- a/.github/workflows/release-linux-glibc-2-17.yml +++ b/.github/workflows/release-linux-glibc-2-17.yml @@ -1,7 +1,7 @@ on: push: tags: - - 'v*' + - "v*" name: centos7-gcc9 Release jobs: @@ -10,8 +10,8 @@ jobs: steps: - uses: actions/checkout@v3 with: - submodules: 'recursive' - fetch-depth: '0' + submodules: "recursive" + fetch-depth: "0" # build the binary in docker image - name: Run the build process with Docker diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f2375f44..60e4de06f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,12 +7,12 @@ on: branches: - master paths-ignore: - - 'docs/**' - - 'LICENCE' - - 'CONTRIBUTION.md' - - 'README.md' + - "docs/**" + - "LICENCE" + - "CONTRIBUTION.md" + - "README.md" tags: - - 'v*' + - "v*" jobs: release: @@ -23,14 +23,14 @@ jobs: platform: [x86_64, aarch64] test-category: [smoke] include: - - {os: linux, runs-on: ubuntu-20.04, compiler: gcc} - - {os: windows, runs-on: windows-latest, compiler: cl} - - {os: macos, runs-on: macos-latest, compiler: clang} - - - {build-slang-llvm: false} - - {os: linux, platform: x86_64, build-slang-llvm: true} - - {os: windows, platform: x86_64, build-slang-llvm: true} - - {os: macos, platform: aarch64, build-slang-llvm: true} + - { os: linux, runs-on: ubuntu-20.04, compiler: gcc } + - { os: windows, runs-on: windows-latest, compiler: cl } + - { os: macos, runs-on: macos-latest, compiler: clang } + + - { build-slang-llvm: false } + - { os: linux, platform: x86_64, build-slang-llvm: true } + - { os: windows, platform: x86_64, build-slang-llvm: true } + - { os: macos, platform: aarch64, build-slang-llvm: true } fail-fast: false runs-on: ${{ matrix.runs-on }} container: ${{ matrix.image || '' }} @@ -42,8 +42,8 @@ jobs: steps: - uses: actions/checkout@v3 with: - submodules: 'recursive' - fetch-depth: '0' + submodules: "recursive" + fetch-depth: "0" - name: Setup uses: ./.github/actions/common-setup with: @@ -211,4 +211,3 @@ jobs: & ".\build_reference.ps1" env: GITHUB_TOKEN: ${{ secrets.UPDATE_STDLIB_REFERENCE_PAT }} - diff --git a/.github/workflows/slash-command-dispatch.yml b/.github/workflows/slash-command-dispatch.yml index 2e72c3bf4..dc66f19af 100644 --- a/.github/workflows/slash-command-dispatch.yml +++ b/.github/workflows/slash-command-dispatch.yml @@ -13,7 +13,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} reaction-token: ${{ secrets.SLANGBOT_PAT }} issue-type: pull-request - commands: | + commands: | format - name: Edit comment with error message diff --git a/.github/workflows/vk-gl-cts-nightly.yml b/.github/workflows/vk-gl-cts-nightly.yml index 3697e17ab..d775dcab6 100644 --- a/.github/workflows/vk-gl-cts-nightly.yml +++ b/.github/workflows/vk-gl-cts-nightly.yml @@ -2,7 +2,7 @@ name: VK-GL-CTS Nightly on: schedule: - - cron: '00 07 * * *' + - cron: "00 07 * * *" concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -30,83 +30,83 @@ jobs: run: shell: bash steps: - - uses: actions/checkout@v4 - with: - submodules: 'true' - fetch-depth: '0' - - name: Setup - uses: ./.github/actions/common-setup - with: - os: ${{matrix.os}} - compiler: ${{matrix.compiler}} - platform: ${{matrix.platform}} - config: ${{matrix.config}} - build-llvm: true - - name: Build Slang - run: | - cmake --preset default --fresh \ - -DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM \ - -DCMAKE_COMPILE_WARNING_AS_ERROR=${{matrix.warnings-as-errors}} \ - -DSLANG_ENABLE_CUDA=1 \ - -DSLANG_ENABLE_EXAMPLES=0 \ - -DSLANG_ENABLE_GFX=1 \ - -DSLANG_ENABLE_TESTS=1 - cmake --workflow --preset "${{matrix.config}}" - - uses: robinraju/release-downloader@v1.7 - with: - latest: true - repository: "shader-slang/VK-GL-CTS" - fileName: "VK-GL-CTS_WithSlang-0.0.3-win64.zip" - - uses: actions/checkout@v4 - with: - repository: "shader-slang/VK-GL-CTS" - sparse-checkout: | - test-lists/slang-passing-tests.txt - test-lists/slang-waiver-tests.xml - path: test-lists - sparse-checkout-cone-mode: false - - name: vkcts setup - shell: pwsh - run: | - Expand-Archive VK-GL-CTS_WithSlang-0.0.3-win64.zip - - copy ${{ github.workspace }}\build\Release\bin\slang.dll ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64\slang.dll - copy ${{ github.workspace }}\build\Release\bin\slang-glslang.dll ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64\slang-glslang.dll - copy ${{ github.workspace }}\build\Release\bin\test-server.exe ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64\test-server.exe + - uses: actions/checkout@v4 + with: + submodules: "true" + fetch-depth: "0" + - name: Setup + uses: ./.github/actions/common-setup + with: + os: ${{matrix.os}} + compiler: ${{matrix.compiler}} + platform: ${{matrix.platform}} + config: ${{matrix.config}} + build-llvm: true + - name: Build Slang + run: | + cmake --preset default --fresh \ + -DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM \ + -DCMAKE_COMPILE_WARNING_AS_ERROR=${{matrix.warnings-as-errors}} \ + -DSLANG_ENABLE_CUDA=1 \ + -DSLANG_ENABLE_EXAMPLES=0 \ + -DSLANG_ENABLE_GFX=1 \ + -DSLANG_ENABLE_TESTS=1 + cmake --workflow --preset "${{matrix.config}}" + - uses: robinraju/release-downloader@v1.7 + with: + latest: true + repository: "shader-slang/VK-GL-CTS" + fileName: "VK-GL-CTS_WithSlang-0.0.3-win64.zip" + - uses: actions/checkout@v4 + with: + repository: "shader-slang/VK-GL-CTS" + sparse-checkout: | + test-lists/slang-passing-tests.txt + test-lists/slang-waiver-tests.xml + path: test-lists + sparse-checkout-cone-mode: false + - name: vkcts setup + shell: pwsh + run: | + Expand-Archive VK-GL-CTS_WithSlang-0.0.3-win64.zip - copy ${{ github.workspace }}\test-lists\test-lists\slang-passing-tests.txt ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64\slang-passing-tests.txt - copy ${{ github.workspace }}\test-lists\test-lists\slang-waiver-tests.xml ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64\slang-waiver-tests.xml + copy ${{ github.workspace }}\build\Release\bin\slang.dll ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64\slang.dll + copy ${{ github.workspace }}\build\Release\bin\slang-glslang.dll ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64\slang-glslang.dll + copy ${{ github.workspace }}\build\Release\bin\test-server.exe ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64\test-server.exe - - name: vkcts run - shell: pwsh - working-directory: ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64 - run: | - .\deqp-vk.exe --deqp-archive-dir=${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64 --deqp-caselist-file=${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64\slang-passing-tests.txt --deqp-waiver-file=${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64\slang-waiver-tests.xml + copy ${{ github.workspace }}\test-lists\test-lists\slang-passing-tests.txt ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64\slang-passing-tests.txt + copy ${{ github.workspace }}\test-lists\test-lists\slang-waiver-tests.xml ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64\slang-waiver-tests.xml - - name: Dump TestResults.qpa if failed - shell: pwsh - if: ${{ !success() }} - working-directory: ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64 - run: Get-Content TestResults.qpa -Tail 1000 - - name: success notification - id: slack-notify-success - if: ${{ success() }} - uses: slackapi/slack-github-action@v1.26.0 - with: - payload: | - { - "CTS-Nightly": ":green-check-mark: CTS nightly status: ${{ job.status }}" - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - - name: failure notification - id: slack-notify-failure - if : ${{ !success() }} - uses: slackapi/slack-github-action@v1.26.0 - with: - payload: | - { - "CTS-Nightly": ":alert: :alert: :alert: :alert: :alert: :alert:\nCTS nightly status: ${{ job.status }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + - name: vkcts run + shell: pwsh + working-directory: ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64 + run: | + .\deqp-vk.exe --deqp-archive-dir=${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64 --deqp-caselist-file=${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64\slang-passing-tests.txt --deqp-waiver-file=${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64\slang-waiver-tests.xml + + - name: Dump TestResults.qpa if failed + shell: pwsh + if: ${{ !success() }} + working-directory: ${{ github.workspace }}\VK-GL-CTS_WithSlang-0.0.3-win64\VK-GL-CTS_WithSlang-0.0.3-win64 + run: Get-Content TestResults.qpa -Tail 1000 + - name: success notification + id: slack-notify-success + if: ${{ success() }} + uses: slackapi/slack-github-action@v1.26.0 + with: + payload: | + { + "CTS-Nightly": ":green-check-mark: CTS nightly status: ${{ job.status }}" + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + - name: failure notification + id: slack-notify-failure + if: ${{ !success() }} + uses: slackapi/slack-github-action@v1.26.0 + with: + payload: | + { + "CTS-Nightly": ":alert: :alert: :alert: :alert: :alert: :alert:\nCTS nightly status: ${{ job.status }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
