yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Yong HeDisable more CI workflows on master push. (#7983)42dc521f7

master
2.8 KiB87 linesraw
1name: Falcor Tests
2
3on:
4  pull_request:
5    branches: [master]
6    paths-ignore:
7      - "docs/**"
8      - "LICENSES/**"
9      - "LICENSE"
10      - "CONTRIBUTING.md"
11      - "README.md"
12concurrency:
13  group: ${{ github.workflow }}-${{ github.ref }}
14  cancel-in-progress: true
15jobs:
16  build:
17    timeout-minutes: 100
18    continue-on-error: true
19    strategy:
20      fail-fast: false
21      matrix:
22        os: [windows]
23        config: [release]
24        compiler: [cl]
25        platform: [x86_64]
26        include:
27          # Self-hosted falcor tests
28          - warnings-as-errors: true
29            test-category: full
30            full-gpu-tests: false
31            runs-on: [Windows, self-hosted, falcor]
32    runs-on: ${{ matrix.runs-on }}
33    defaults:
34      run:
35        shell: bash
36    steps:
37      - uses: actions/checkout@v4
38        with:
39          submodules: "recursive"
40          fetch-depth: "0"
41      - name: Setup
42        uses: ./.github/actions/common-setup
43        with:
44          os: ${{matrix.os}}
45          compiler: ${{matrix.compiler}}
46          platform: ${{matrix.platform}}
47          config: ${{matrix.config}}
48          build-llvm: true
49      - name: setup-falcor
50        shell: pwsh
51        run: |
52          mkdir FalcorBin
53          cd FalcorBin
54          Copy-Item -Path 'C:\Falcor\build\windows-vs2022\bin' -Destination '.\build\windows-vs2022\bin' -Recurse -Exclude ("*.pdb")
55          Copy-Item -Path 'C:\Falcor\tests' -Destination '.\' -Recurse
56          Copy-Item -Path 'C:\Falcor\tools' -Destination '.\' -Recurse
57          Copy-Item -Path 'C:\Falcor\media' -Destination '.\' -Recurse
58          Copy-Item -Path 'C:\Falcor\media_internal' -Destination '.\' -Recurse
59          Copy-Item -Path 'C:\Falcor\scripts' -Destination '.\' -Recurse
60          cd ..\
61      - name: Build Slang
62        run: |
63          cmake --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
70          cmake --workflow --preset "${{matrix.config}}"
71      - name: Copy Slang to Falcor
72        run: |
73          cp --verbose --recursive --target-directory ./FalcorBin/build/windows-vs2022/bin/Release build/Release/bin/*
74      - name: falcor-unit-test
75        shell: pwsh
76        run: |
77          $ErrorActionPreference = "SilentlyContinue"
78          cd .\FalcorBin\tests
79          python ./testing/run_unit_tests.py --config windows-vs2022-Release -t "-slow"
80          cd ../../
81      - name: falcor-image-test
82        shell: pwsh
83        run: |
84          $ErrorActionPreference = "SilentlyContinue"
85          cd .\FalcorBin\tests
86          python ./testing/run_image_tests.py --config windows-vs2022-Release --run-only
87          cd ../../