Skip to content

Commit 37f276d

Browse files
committed
Remove Test-Clang option to simplify and work around cmake/actions
disconnect
1 parent a07ea4f commit 37f276d

10 files changed

+9
-21
lines changed

.github/workflows/macos-clang-mtl.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ jobs:
1515
with:
1616
OS: macOS
1717
SKU: macos
18-
Test-Clang: On
1918
TestTarget: check-hlsl-clang-mtl
2019
OffloadTest-branch: ${{ github.ref }}

.github/workflows/macos-dxc-mtl.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ jobs:
1515
with:
1616
OS: macOS
1717
SKU: macos
18-
Test-Clang: Off
1918
TestTarget: check-hlsl-mtl
2019
OffloadTest-branch: ${{ github.ref }}

.github/workflows/pr-matrix.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
OS: windows
2727
SKU: ${{ matrix.SKU }}
2828
TestTarget: ${{ matrix.TestTarget }}
29-
Test-Clang: ${{ contains(matrix.TestTarget, 'clang') }}
3029
OffloadTest-branch: ${{ github.event.pull_request.head.sha }}
3130
LLVM-ExtraCMakeArgs: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DOFFLOADTEST_USE_CLANG_TIDY=On
3231

@@ -42,5 +41,4 @@ jobs:
4241
OS: macOS
4342
SKU: ${{ matrix.SKU }}
4443
TestTarget: ${{ matrix.TestTarget }}
45-
Test-Clang: ${{ contains('clang', matrix.TestTarget) }}
4644
OffloadTest-branch: ${{ github.event.pull_request.head.sha }}

.github/workflows/test-all.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ on:
4040
required: false
4141
default: 'check-hlsl'
4242
type: string
43-
Test-Clang:
44-
required: true
45-
type: choice
46-
options:
47-
- On
48-
- Off
4943
OS:
5044
required: true
5145
type: choice
@@ -97,10 +91,6 @@ on:
9791
required: false
9892
default: 'Release'
9993
type: string
100-
Test-Clang:
101-
required: false
102-
default: 'On'
103-
type: string
10494
TestTarget:
10595
required: false
10696
default: 'check-hlsl'
@@ -156,12 +146,20 @@ jobs:
156146
cd build
157147
cmake -G Ninja -DCMAKE_BUILD_TYPE=${{ inputs.BuildType }} -C ${{ github.workspace }}/DXC/cmake/caches/PredefinedParams.cmake -C ${{ github.workspace }}/OffloadTest/cmake/caches/sccache.cmake -DHLSL_DISABLE_SOURCE_GENERATION=On ${{ github.workspace }}/DXC/
158148
ninja
149+
- name: Should Test Clang!
150+
if: ${{ contains('clang', inputs.TestTarget) }}
151+
env:
152+
TEST_CLANG: On
153+
- name: Should NOT Test Clang!
154+
if: ${{ !contains('clang', inputs.TestTarget) }}
155+
env:
156+
TEST_CLANG: Off
159157
- name: Build LLVM
160158
run: |
161159
cd llvm-project
162160
mkdir build
163161
cd build
164-
cmake -G Ninja ${{ inputs.LLVM-ExtraCMakeArgs }} -DCMAKE_BUILD_TYPE=${{ inputs.BuildType }} -C ${{ github.workspace }}/llvm-project/clang/cmake/caches/HLSL.cmake -C ${{ github.workspace }}/OffloadTest/cmake/caches/sccache.cmake -DDXC_DIR=${{ github.workspace }}/DXC/build/bin -DLLVM_EXTERNAL_OFFLOADTEST_SOURCE_DIR=${{ github.workspace }}/OffloadTest -DLLVM_EXTERNAL_PROJECTS="OffloadTest" -DLLVM_LIT_ARGS="--xunit-xml-output=testresults.xunit.xml -v" -DOFFLOADTEST_TEST_CLANG=${{ inputs.Test-Clang }} -DGOLDENIMAGE_DIR=${{ github.workspace }}/golden-images ${{ github.workspace }}/llvm-project/llvm/
162+
cmake -G Ninja ${{ inputs.LLVM-ExtraCMakeArgs }} -DCMAKE_BUILD_TYPE=${{ inputs.BuildType }} -C ${{ github.workspace }}/llvm-project/clang/cmake/caches/HLSL.cmake -C ${{ github.workspace }}/OffloadTest/cmake/caches/sccache.cmake -DDXC_DIR=${{ github.workspace }}/DXC/build/bin -DLLVM_EXTERNAL_OFFLOADTEST_SOURCE_DIR=${{ github.workspace }}/OffloadTest -DLLVM_EXTERNAL_PROJECTS="OffloadTest" -DLLVM_LIT_ARGS="--xunit-xml-output=testresults.xunit.xml -v" -DOFFLOADTEST_TEST_CLANG=$(TEST_CLANG) -DGOLDENIMAGE_DIR=${{ github.workspace }}/golden-images ${{ github.workspace }}/llvm-project/llvm/
165163
ninja hlsl-test-depends
166164
- name: Run HLSL Tests
167165
run: |

.github/workflows/windows-intel-clang-d3d12.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
with:
1616
OS: windows
1717
SKU: windows-intel
18-
Test-Clang: On
1918
TestTarget: check-hlsl-clang-d3d12
2019
OffloadTest-branch: ${{ github.ref }}
2120
LLVM-ExtraCMakeArgs: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DOFFLOADTEST_USE_CLANG_TIDY=On

.github/workflows/windows-intel-clang-vk.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
with:
1616
OS: windows
1717
SKU: windows-intel
18-
Test-Clang: On
1918
TestTarget: check-hlsl-clang-vk
2019
OffloadTest-branch: ${{ github.ref }}
2120
LLVM-ExtraCMakeArgs: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DOFFLOADTEST_USE_CLANG_TIDY=On

.github/workflows/windows-intel-clang-warp-d3d12.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
with:
1616
OS: windows
1717
SKU: windows-intel
18-
Test-Clang: On
1918
TestTarget: check-hlsl-clang-warp-d3d12
2019
OffloadTest-branch: ${{ github.ref }}
2120
LLVM-ExtraCMakeArgs: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DOFFLOADTEST_USE_CLANG_TIDY=On

.github/workflows/windows-intel-dxc-d3d12.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
with:
1616
OS: windows
1717
SKU: windows-intel
18-
Test-Clang: Off
1918
BuildType: Debug
2019
TestTarget: check-hlsl-d3d12
2120
OffloadTest-branch: ${{ github.ref }}

.github/workflows/windows-intel-dxc-vk.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
with:
1616
OS: windows
1717
SKU: windows-intel
18-
Test-Clang: Off
1918
BuildType: Debug
2019
TestTarget: check-hlsl-vk
2120
OffloadTest-branch: ${{ github.ref }}

.github/workflows/windows-intel-dxc-warp-d3d12.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
with:
1616
OS: windows
1717
SKU: windows-intel
18-
Test-Clang: Off
1918
BuildType: Debug
2019
TestTarget: check-hlsl-warp-d3d12
2120
OffloadTest-branch: ${{ github.ref }}

0 commit comments

Comments
 (0)