@@ -4,116 +4,50 @@ permissions:
44 contents : read
55
66on :
7- workflow_dispatch :
8- inputs :
9- LLVM-Ref :
10- description : ' Test Suite Branch'
11- required : false
12- default : ' main'
13- type : string
14- LLVM-branch :
15- description : ' LLVM Branch'
16- required : false
17- default : ' main'
18- type : string
19- DXC-branch :
20- description : ' DXC Branch'
21- required : false
22- default : ' main'
23- type : string
24- BuildType :
25- description : ' Build Type'
26- required : false
27- default : ' Release'
28- type : choice
29- options :
30- - Release
31- - RelWithDebInfo
32- - Debug
33- TestTarget :
34- required : false
35- default : ' check-hlsl'
36- type : string
37- Test-Clang :
38- required : true
39- type : choice
40- options :
41- - On
42- - Off
43- SKU :
44- required : true
45- type : choice
46- options :
47- - hlsl-metal
48- LLVM-ExtraCMakeArgs :
49- description : ' Extra CMake Args for LLVM'
50- required : false
51- default : ' '
52- type : string
537 workflow_call :
548 inputs :
559 OffloadTest-branch :
5610 description : ' Test Suite Branch'
5711 required : false
5812 default : ' main'
5913 type : string
60- LLVM-branch :
14+ LLVM-ref :
6115 description : ' LLVM Branch'
6216 required : false
6317 default : ' main'
6418 type : string
65- DXC-branch :
66- description : ' DXC Branch'
67- required : false
68- default : ' main'
69- type : string
7019 SKU :
7120 required : true
7221 type : string
73- BuildType :
74- description : ' Build Type'
75- required : false
76- default : ' Release'
77- type : string
78- Test-Clang :
79- required : false
80- default : ' On'
81- type : string
8222 TestTarget :
8323 required : false
8424 default : ' check-hlsl'
8525 type : string
86- LLVM-ExtraCMakeArgs :
87- description : ' Extra CMake Args for LLVM'
88- required : false
89- default : ' '
90- type : string
9126
9227jobs :
9328 build :
9429 runs-on : [self-hosted, "${{ inputs.SKU }}"]
9530 steps :
9631 - name : Checkout DXC
97- uses : actions/checkout@v4
32+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
9833 with :
9934 repository : Microsoft/DirectXShaderCompiler
100- ref : ${{ inputs.DXC-branch }}
35+ ref : main
10136 path : DXC
10237 submodules : true
10338 - name : Checkout LLVM
104- uses : actions/checkout@v4
39+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
10540 with :
106- repository : llvm/llvm-project
10741 ref : ${{ inputs.LLVM-branch }}
10842 path : llvm-project
10943 - name : Checkout OffloadTest
110- uses : actions/checkout@v4
44+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
11145 with :
11246 repository : llvm-beanz/offload-test-suite
113- ref : ${{ inputs.OffloadTest-branch }}
47+ ref : main
11448 path : OffloadTest
11549 - name : Checkout Golden Images
116- uses : actions/checkout@v4
50+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
11751 with :
11852 repository : llvm-beanz/offload-golden-images
11953 ref : main
@@ -128,14 +62,14 @@ jobs:
12862 cd DXC
12963 mkdir build
13064 cd build
131- 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/
65+ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -C ${{ github.workspace }}/DXC/cmake/caches/PredefinedParams.cmake -C ${{ github.workspace }}/OffloadTest/cmake/caches/sccache.cmake -DHLSL_DISABLE_SOURCE_GENERATION=On ${{ github.workspace }}/DXC/
13266 ninja dxv llvm-dis
13367 - name : Build LLVM
13468 run : |
13569 cd llvm-project
13670 mkdir build
13771 cd build
138- cmake -G Ninja ${{ inputs.LLVM-ExtraCMakeArgs }} - DDXIL_DIS=${{ github.workspace }}/DXC/build/bin/llvm-dis -DLLVM_INCLUDE_DXIL_TESTS=On -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/
72+ cmake -G Ninja - DDXIL_DIS=${{ github.workspace }}/DXC/build/bin/llvm-dis -DLLVM_INCLUDE_DXIL_TESTS=On -DCMAKE_BUILD_TYPE=Release -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" -DGOLDENIMAGE_DIR=${{ github.workspace }}/golden-images ${{ github.workspace }}/llvm-project/llvm/
13973 ninja hlsl-test-depends llvm-test-depends clang-test-depends
14074 - name : Run HLSL Tests
14175 run : |
14680 ninja check-hlsl-unit
14781 ninja ${{ inputs.TestTarget }}
14882 - name : Publish Test Results
149- uses : EnricoMi/publish-unit-test-result-action/macos@v2
83+ uses : EnricoMi/publish-unit-test-result-action/macos@170bf24d20d201b842d7a52403b73ed297e6645b # v2
15084 if : always() && runner.os == 'macOS'
15185 with :
15286 comment_mode : off
0 commit comments