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
1.3 KiB47 linesraw
1name: MDL Benchmark
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
15
16jobs:
17  build:
18    runs-on: [Windows, self-hosted]
19    steps:
20      - uses: actions/checkout@v4
21        with:
22          submodules: "recursive"
23          fetch-depth: "0"
24      - name: Common setup
25        uses: ./.github/actions/common-setup
26        with:
27          os: windows
28          compiler: cl
29          platform: x86_64
30          config: release
31          build-llvm: true
32      - name: Build Slang
33        run: |
34          cmake --preset default --fresh -DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM -DCMAKE_COMPILE_WARNING_AS_ERROR=false
35          cmake --workflow --preset release
36      - uses: actions/checkout@v4
37        with:
38          repository: "shader-slang/MDL-SDK"
39          path: "external/MDL-SDK"
40          sparse-checkout: |
41            ./examples/mdl_sdk/dxr/content/slangified
42      - name: Run benchmark
43        run: |
44          cd tools/benchmark
45          cp ../../external/MDL-SDK/examples/mdl_sdk/dxr/content/slangified/*.slang .
46          pip install prettytable argparse
47          python compile.py --samples 1 --target dxil