Make precompileForTargets work with Slang API (#4845) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmark | |
on: | |
push: | |
branches: [master] | |
paths-ignore: | |
- 'docs/**' | |
- 'LICENCE' | |
- 'CONTRIBUTION.md' | |
- 'README.md' | |
pull_request: | |
branches: [master] | |
paths-ignore: | |
- 'docs/**' | |
- 'LICENCE' | |
- 'CONTRIBUTION.md' | |
- 'README.md' | |
jobs: | |
build: | |
runs-on: [Windows, benchmark, self-hosted] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
fetch-depth: '0' | |
- name: Common setup | |
uses: ./.github/actions/common-setup | |
with: | |
os: windows | |
compiler: cl | |
platform: x86_64 | |
config: release | |
build-llvm: true | |
- name: Build Slang | |
run: | | |
cmake --preset default --fresh -DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM -DCMAKE_COMPILE_WARNING_AS_ERROR=false | |
cmake --workflow --preset release | |
- name: Setup | |
run: | | |
cd tests/mdl | |
pip install prettytable argparse | |
- name: Run benchmark | |
run: | | |
cd tests/mdl | |
Copy-Item -Path C:\slang-benchmarks -Destination . -Recurse | |
python compile.py --samples 16 --target dxil --ci |