Skip to content

Commit 1af67b1

Browse files
[CI] Add "Nightly" releases support for manual runs of sycl-linux-run-tests.yml (#19690)
We also have "official" releases like "v6.1.0" but they have different archive name format *and* lack necessary tools for running E2E tests (like `FileCheck`, etc.). As such, limit support for "Nightly" releases format.
1 parent 3814f63 commit 1af67b1

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

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

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ on:
179179
- e2e
180180
- cts
181181
- benchmarks
182+
toolchain_release_tag:
183+
description: |
184+
Tag of a "Nightly" release at https://github.com/intel/llvm/releases.
185+
default: ''
182186

183187
env:
184188
description: |
@@ -256,11 +260,6 @@ jobs:
256260
uses: actions/download-artifact@v4
257261
with:
258262
name: ${{ inputs.toolchain_artifact }}
259-
- name: Debug prints [workflow_run]
260-
if: inputs.toolchain_artifact != '' && github.event_name == 'workflow_run'
261-
run: |
262-
pwd
263-
ls
264263
- name: Download SYCL toolchain [workflow_run]
265264
# NOTE: This is for `sycl-linux-precommit-aws.yml`.
266265
if: inputs.toolchain_artifact != '' && github.event_name == 'workflow_run'
@@ -299,6 +298,17 @@ jobs:
299298
rm -f ${{ inputs.toolchain_artifact_filename }}
300299
echo PATH=$PWD/toolchain/bin/:$PATH >> $GITHUB_ENV
301300
echo LD_LIBRARY_PATH=$PWD/toolchain/lib/:$LD_LIBRARY_PATH >> $GITHUB_ENV
301+
- name: Download SYCL toolchain using release tag
302+
if: inputs.toolchain_release_tag != ''
303+
env:
304+
TAG: ${{ inputs.toolchain_release_tag }}
305+
shell: bash
306+
run: |
307+
mkdir toolchain
308+
wget "https://github.com/intel/llvm/releases/download/$TAG/sycl_linux.tar.gz"
309+
tar xf sycl_linux.tar.gz -C toolchain
310+
echo PATH=$PWD/toolchain/bin/:$PATH >> $GITHUB_ENV
311+
echo LD_LIBRARY_PATH=$PWD/toolchain/lib/:$LD_LIBRARY_PATH >> $GITHUB_ENV
302312
- run: which clang++ sycl-ls
303313
- run: sycl-ls --verbose
304314
- run: SYCL_UR_TRACE=1 sycl-ls

0 commit comments

Comments
 (0)