From a4210c34e9c4f583887c001bdb21b55cd2a160ec Mon Sep 17 00:00:00 2001 From: Udit Agarwal Date: Thu, 3 Oct 2024 06:53:53 -0700 Subject: [PATCH] [CI] Fix syntax for multi-line expressions in sycl-linux-precommit.yml (#15587) Fixes: https://github.com/intel/llvm/pull/15481 Example of a successful run: https://github.com/intel/llvm/actions/runs/11151448349/job/30995146095 It seems that only `>-` actually works when we use multi-line expressions using `${{ }}`. https://github.com/orgs/community/discussions/25641#discussioncomment-10617902 --- .github/workflows/sycl-linux-precommit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sycl-linux-precommit.yml b/.github/workflows/sycl-linux-precommit.yml index 9fa114075ca00..a73324e33fec5 100644 --- a/.github/workflows/sycl-linux-precommit.yml +++ b/.github/workflows/sycl-linux-precommit.yml @@ -117,11 +117,11 @@ jobs: env: ${{ matrix.env || '{}' }} # Do not install drivers on AMD and CUDA runners. - install_igc_driver: | + install_igc_driver: >- ${{ !contains(matrix.target_devices, 'ext_oneapi_cuda') && !contains(matrix.target_devices, 'ext_oneapi_hip') && contains(needs.detect_changes.outputs.filters, 'drivers') }} - install_dev_igc_driver: | + install_dev_igc_driver: >- ${{ !contains(matrix.target_devices, 'ext_oneapi_cuda') && !contains(matrix.target_devices, 'ext_oneapi_hip') && matrix.use_igc_dev && contains(needs.detect_changes.outputs.filters, 'devigccfg') ||