Skip to content

Commit 8ed70da

Browse files
authored
Enable passing clang builders for prs (#19)
1 parent 49f16e8 commit 8ed70da

8 files changed

+21
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
schedule:
1010
- cron: '*/30 * * * *' # run every 30 minutes
1111

12+
pull_request:
13+
branches:
14+
- main
15+
1216
jobs:
1317
macOS-Metal-Clang:
1418
uses: ./.github/workflows/test-all.yaml
@@ -17,3 +21,4 @@ jobs:
1721
SKU: macOS
1822
Test-Clang: On
1923
TestTarget: check-hlsl-clang-mtl
24+
HLSLTest-branch: ${{ github.ref }}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
schedule:
1010
- cron: '0 * * * *' # run every 30 minutes
1111

12+
pull_request:
13+
branches:
14+
- main
15+
1216
jobs:
1317
Windows-D3D12-Intel-Clang:
1418
uses: ./.github/workflows/test-all.yaml
@@ -17,3 +21,5 @@ jobs:
1721
SKU: GPU-Intel
1822
Test-Clang: On
1923
TestTarget: check-hlsl-clang-d3d12
24+
HLSLTest-branch: ${{ github.ref }}
25+
LLVM-ExtraCMakeArgs: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
schedule:
1010
- cron: '0 * * * *' # run every 30 minutes
1111

12+
pull_request:
13+
branches:
14+
- main
15+
1216
jobs:
1317
Windows-D3D12-Warp-Clang:
1418
uses: ./.github/workflows/test-all.yaml
@@ -17,4 +21,5 @@ jobs:
1721
SKU: GPU-Intel
1822
Test-Clang: On
1923
TestTarget: check-hlsl-clang-warp-d3d12
24+
HLSLTest-branch: ${{ github.ref }}
2025
LLVM-ExtraCMakeArgs: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ jobs:
1818
SKU: GPU-NV
1919
Test-Clang: On
2020
TestTarget: check-hlsl-clang-d3d12
21+
HLSLTest-branch: ${{ github.ref }}
2122
LLVM-ExtraCMakeArgs: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ jobs:
1818
SKU: GPU-NV
1919
Test-Clang: On
2020
TestTarget: check-hlsl-clang-vk
21+
HLSLTest-branch: ${{ github.ref }}
2122
LLVM-ExtraCMakeArgs: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ jobs:
1919
Test-Clang: Off
2020
BuildType: Debug
2121
TestTarget: check-hlsl-d3d12
22+
HLSLTest-branch: ${{ github.ref }}
2223
LLVM-ExtraCMakeArgs: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ jobs:
1919
Test-Clang: Off
2020
BuildType: Debug
2121
TestTarget: check-hlsl-vk
22+
HLSLTest-branch: ${{ github.ref }}
2223
LLVM-ExtraCMakeArgs: -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl

test/Basic/StructuredBuffer.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ DescriptorSets:
3939
...
4040
#--- end
4141

42+
# UNSUPPORTED: Clang
4243
# RUN: split-file %s %t
4344
# RUN: %if DirectX %{ dxc -T cs_6_0 -Fo %t.dxil %t/source.hlsl %}
4445
# RUN: %if DirectX %{ %offloader %t/pipeline.yaml %t.dxil | FileCheck %s %}

0 commit comments

Comments
 (0)