Skip to content

Commit 826a23a

Browse files
committed
Add option for extra cmake args
1 parent fad06bc commit 826a23a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/test-all.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ on:
5959
- macOS
6060
- GPU-Intel
6161
- GPU-NV
62+
LLVM-ExtraCMakeArgs:
63+
description: 'Extra CMake Args for LLVM'
64+
required: false
65+
default: ''
66+
type: string
6267
workflow_call:
6368
inputs:
6469
HLSLTest-branch:
@@ -100,6 +105,11 @@ on:
100105
required: false
101106
default: 'check-hlsl'
102107
type: string
108+
LLVM-ExtraCMakeArgs:
109+
description: 'Extra CMake Args for LLVM'
110+
required: false
111+
default: ''
112+
type: string
103113

104114
jobs:
105115
build:
@@ -144,7 +154,7 @@ jobs:
144154
cd llvm-project
145155
mkdir build
146156
cd build
147-
cmake -G Ninja -DCMAKE_BUILD_TYPE=${{ inputs.BuildType }} -C ${{ github.workspace }}/llvm-project/clang/cmake/caches/HLSL.cmake -C ${{ github.workspace }}/HLSLTest/cmake/caches/sccache.cmake -DDXC_DIR=${{ github.workspace }}/DXC/build/bin -DLLVM_EXTERNAL_HLSLTEST_SOURCE_DIR=${{ github.workspace }}/HLSLTest -DLLVM_EXTERNAL_PROJECTS="HLSLTest" -DLLVM_LIT_ARGS="--xunit-xml-output=testresults.xunit.xml -v" -DHLSLTEST_TEST_CLANG=${{ inputs.Test-Clang }} ${{ github.workspace }}/llvm-project/llvm/
157+
cmake -G Ninja ${{ inputs.LLVM-ExtraCMakeArgs }} -DCMAKE_BUILD_TYPE=${{ inputs.BuildType }} -C ${{ github.workspace }}/llvm-project/clang/cmake/caches/HLSL.cmake -C ${{ github.workspace }}/HLSLTest/cmake/caches/sccache.cmake -DDXC_DIR=${{ github.workspace }}/DXC/build/bin -DLLVM_EXTERNAL_HLSLTEST_SOURCE_DIR=${{ github.workspace }}/HLSLTest -DLLVM_EXTERNAL_PROJECTS="HLSLTest" -DLLVM_LIT_ARGS="--xunit-xml-output=testresults.xunit.xml -v" -DHLSLTEST_TEST_CLANG=${{ inputs.Test-Clang }} ${{ github.workspace }}/llvm-project/llvm/
148158
ninja hlsl-test-depends
149159
- name: Run HLSL Tests
150160
run: |

0 commit comments

Comments
 (0)