yum-mirror/slang

Making it easier to work with shaders

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

Jay KwakUpdate workflow YML files for renamed files (#5688)410ad9c18

master
1.8 KiB69 linesraw
1name: Compile Regression-Test
2
3on:
4  push:
5    branches: [master]
6    paths-ignore:
7      - "docs/**"
8      - "LICENSES/**"
9      - "LICENSE"
10      - "CONTRIBUTING.md"
11      - "README.md"
12  pull_request:
13    branches: [master]
14    paths-ignore:
15      - "docs/**"
16      - "LICENSES/**"
17      - "LICENSE"
18      - "CONTRIBUTING.md"
19      - "README.md"
20concurrency:
21  group: ${{ github.workflow }}-${{ github.ref }}
22  cancel-in-progress: true
23jobs:
24  build:
25    timeout-minutes: 100
26    continue-on-error: true
27    strategy:
28      fail-fast: false
29      matrix:
30        os: [windows]
31        config: [release]
32        compiler: [cl]
33        platform: [x86_64]
34        include:
35          # Self-hosted falcor tests
36          - warnings-as-errors: true
37            test-category: full
38            full-gpu-tests: false
39            runs-on: [Windows, self-hosted, regression-test]
40    runs-on: ${{ matrix.runs-on }}
41    defaults:
42      run:
43        shell: bash
44    steps:
45      - uses: actions/checkout@v4
46        with:
47          submodules: "recursive"
48          fetch-depth: "0"
49      - name: Setup
50        uses: ./.github/actions/common-setup
51        with:
52          os: ${{matrix.os}}
53          compiler: ${{matrix.compiler}}
54          platform: ${{matrix.platform}}
55          config: ${{matrix.config}}
56          build-llvm: true
57      - name: Build Slang
58        run: |
59          cmake --preset default --fresh \
60            -DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM \
61            -DCMAKE_COMPILE_WARNING_AS_ERROR=${{matrix.warnings-as-errors}} \
62            -DSLANG_ENABLE_CUDA=1
63          cmake --workflow --preset "${{matrix.config}}"
64      - name: Run compile and validation test
65        run: |
66          cp -r /c/slang_compile_test_suite_a .
67          cd slang_compile_test_suite_a
68          export SLANGC_PATH="$bin_dir/slangc.exe"
69          bash ./compile_all_slang.sh