Skip to content

Commit 32a2777

Browse files
authored
[CI][NFC] Fixed GFX driver update PR (#6723)
Now generate test matrix correctly use github.event.pull_request.head.sha that is required for pull_request_target.
1 parent e39d6ec commit 32a2777

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/sycl_gen_test_matrix.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ on:
2424
type: string
2525
required: false
2626
default: ${{ github.run_id }}-${{ github.run_attempt }}
27+
ref:
28+
description: "Commit to use for checkout or github.sha by default"
29+
type: string
30+
required: false
31+
default: ${{ github.sha }}
2732
outputs:
2833
lts_matrix:
2934
description: "Generated Matrix"
@@ -42,11 +47,11 @@ jobs:
4247
- name: Download scripts and configs
4348
shell: bash
4449
run: |
45-
wget raw.githubusercontent.com/intel/llvm/${{ github.sha }}/devops/scripts/generate_test_matrix.js
46-
wget raw.githubusercontent.com/intel/llvm/${{ github.sha }}/devops/test_configs.json
50+
wget raw.githubusercontent.com/intel/llvm/${{ inputs.ref }}/devops/scripts/generate_test_matrix.js
51+
wget raw.githubusercontent.com/intel/llvm/${{ inputs.ref }}/devops/test_configs.json
4752
wget raw.githubusercontent.com/intel/llvm/sycl/devops/dependencies.json
4853
mv dependencies.json dependencies.sycl.json
49-
wget raw.githubusercontent.com/intel/llvm/${{ github.sha }}/devops/dependencies.json
54+
wget raw.githubusercontent.com/intel/llvm/${{ inputs.ref }}/devops/dependencies.json
5055
- id: work
5156
uses: actions/github-script@v6
5257
name: Generate matrix

.github/workflows/sycl_precommit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
name: Generate Test Matrix
4343
uses: ./.github/workflows/sycl_gen_test_matrix.yml
4444
with:
45+
ref: ${{ github.event.pull_request.head.sha }}
4546
lts_config: "hip_amdgpu;ocl_x64;ocl_gen9;l0_gen9;esimd_emu;cuda"
4647

4748
linux_default:

0 commit comments

Comments
 (0)