diff --git a/.github/workflows/sycl_gen_test_matrix.yml b/.github/workflows/sycl_gen_test_matrix.yml index dc80bd1ae67b9..ef1411eca1831 100644 --- a/.github/workflows/sycl_gen_test_matrix.yml +++ b/.github/workflows/sycl_gen_test_matrix.yml @@ -24,6 +24,11 @@ on: type: string required: false default: ${{ github.run_id }}-${{ github.run_attempt }} + ref: + description: "Commit to use for checkout or github.sha by default" + type: string + required: false + default: ${{ github.sha }} outputs: lts_matrix: description: "Generated Matrix" @@ -42,11 +47,11 @@ jobs: - name: Download scripts and configs shell: bash run: | - wget raw.githubusercontent.com/intel/llvm/${{ github.sha }}/devops/scripts/generate_test_matrix.js - wget raw.githubusercontent.com/intel/llvm/${{ github.sha }}/devops/test_configs.json + wget raw.githubusercontent.com/intel/llvm/${{ inputs.ref }}/devops/scripts/generate_test_matrix.js + wget raw.githubusercontent.com/intel/llvm/${{ inputs.ref }}/devops/test_configs.json wget raw.githubusercontent.com/intel/llvm/sycl/devops/dependencies.json mv dependencies.json dependencies.sycl.json - wget raw.githubusercontent.com/intel/llvm/${{ github.sha }}/devops/dependencies.json + wget raw.githubusercontent.com/intel/llvm/${{ inputs.ref }}/devops/dependencies.json - id: work uses: actions/github-script@v6 name: Generate matrix diff --git a/.github/workflows/sycl_precommit.yml b/.github/workflows/sycl_precommit.yml index 389f6f81db4d3..fda7f6949d155 100644 --- a/.github/workflows/sycl_precommit.yml +++ b/.github/workflows/sycl_precommit.yml @@ -42,6 +42,7 @@ jobs: name: Generate Test Matrix uses: ./.github/workflows/sycl_gen_test_matrix.yml with: + ref: ${{ github.event.pull_request.head.sha }} lts_config: "hip_amdgpu;ocl_x64;ocl_gen9;l0_gen9;esimd_emu;cuda" linux_default: