Skip to content

Commit 9810e5b

Browse files
committed
[CI][CTS] Add fixed ref for cts
This patch adds a new input to fix the specific version of cts. In general it's needed for sycl-rel as the cts is continuously changing.
1 parent 42a9485 commit 9810e5b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/sycl-linux-run-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ on:
4848
Note: it doesn't affect ./devops/actions/run-tests/* as these actions
4949
call checkout again and therefore override the devops directory, so
5050
configs/dependecies from input.ref are used.
51+
sycl_cts_ref:
52+
description: "Commit SHA or branch to checkout"
53+
type: string
54+
default: "main"
55+
required: False
5156

5257
sycl_toolchain_artifact:
5358
type: string
@@ -314,3 +319,4 @@ jobs:
314319
sycl_cts_artifact: ${{ inputs.sycl_cts_artifact }}
315320
target_devices: ${{ inputs.target_devices }}
316321
retention-days: ${{ inputs.retention-days }}
322+
sycl_cts_ref: ${{ inputs.sycl_cts_ref }}

devops/actions/run-tests/cts/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ inputs:
1111
required: true
1212
retention-days:
1313
required: false
14+
sycl_cts_ref:
15+
description: "Commit SHA or branch to checkout"
16+
required: false
17+
default: "main"
1418

1519
runs:
1620
using: "composite"
@@ -21,8 +25,7 @@ runs:
2125
with:
2226
path: khronos_sycl_cts
2327
repository: 'KhronosGroup/SYCL-CTS'
24-
ref: 'main'
25-
default_branch: 'main'
28+
ref: ${{ inputs.sycl_cts_ref }}
2629
cache_path: "/__w/repo_cache/"
2730
- name: SYCL CTS GIT submodules init
2831
if: inputs.cts_testing_mode != 'run-only'

0 commit comments

Comments
 (0)