[llvm] Add pre-merge workflow for HLSL testing (PR #122184)
Chris B via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 8 16:17:44 PST 2025
================
@@ -0,0 +1,177 @@
+name: HLSL Test
+
+permissions:
+ contents: read
+ checks: write
+
+on:
+ workflow_dispatch:
+ inputs:
+ LLVM-Ref:
+ description: 'Test Suite Branch'
+ required: false
+ default: 'main'
+ type: string
+ LLVM-branch:
+ description: 'LLVM Branch'
+ required: false
+ default: 'main'
+ type: string
+ LLVM-fork:
+ description: 'LLVM fork'
+ required: false
+ default: 'llvm'
+ type: string
+ DXC-branch:
+ description: 'DXC Branch'
+ required: false
+ default: 'main'
+ type: string
+ BuildType:
+ description: 'Build Type'
+ required: false
+ default: 'Release'
+ type: choice
+ options:
+ - Release
+ - RelWithDebInfo
+ - Debug
+ TestTarget:
+ required: false
+ default: 'check-hlsl'
+ type: string
+ Test-Clang:
+ required: true
+ type: choice
+ options:
+ - On
+ - Off
+ OS:
+ required: true
+ type: choice
+ options:
+ - macOS
+ - windows
+ SKU:
+ required: true
+ type: choice
+ options:
+ - hlsl-metal
+ LLVM-ExtraCMakeArgs:
+ description: 'Extra CMake Args for LLVM'
+ required: false
+ default: ''
+ type: string
+ workflow_call:
+ inputs:
+ OffloadTest-branch:
+ description: 'Test Suite Branch'
+ required: false
+ default: 'main'
+ type: string
+ LLVM-branch:
+ description: 'LLVM Branch'
+ required: false
+ default: 'main'
+ type: string
+ LLVM-fork:
+ description: 'LLVM For'
+ required: false
+ default: 'llvm'
+ type: string
+ DXC-branch:
+ description: 'DXC Branch'
+ required: false
+ default: 'main'
+ type: string
+ OS:
+ required: true
+ type: string
+ SKU:
+ required: true
+ type: string
+ BuildType:
+ description: 'DXC Branch'
+ required: false
+ default: 'Release'
+ type: string
+ Test-Clang:
+ required: false
+ default: 'On'
+ type: string
+ TestTarget:
+ required: false
+ default: 'check-hlsl'
+ type: string
+ LLVM-ExtraCMakeArgs:
+ description: 'Extra CMake Args for LLVM'
+ required: false
+ default: ''
+ type: string
+
+jobs:
+ build:
+ runs-on: [self-hosted, "${{ inputs.SKU }}"]
+ steps:
+ - name: Checkout DXC
+ uses: actions/checkout at v4
+ with:
+ repository: Microsoft/DirectXShaderCompiler
+ ref: ${{ inputs.DXC-branch }}
+ path: DXC
+ fetch-depth: 1
+ submodules: true
+ - name: Checkout LLVM
+ uses: actions/checkout at v4
+ with:
+ repository: ${{ inputs.LLVM-fork }}/llvm-project
----------------
llvm-beanz wrote:
I'll also remove this. It is useful in the tests on the the test suite repo because it enables running on a change that isn't merged to LLVM, but isn't useful here.
https://github.com/llvm/llvm-project/pull/122184
More information about the llvm-commits
mailing list