diff --git a/.github/workflows/sycl-post-commit.yml b/.github/workflows/sycl-post-commit.yml index 9234910898bc1..6c97dedf21fc2 100644 --- a/.github/workflows/sycl-post-commit.yml +++ b/.github/workflows/sycl-post-commit.yml @@ -29,6 +29,10 @@ concurrency: permissions: read-all jobs: + detect_changes: + if: ${{ github.event_name == 'pull_request' }} + uses: ./.github/workflows/sycl-detect-changes.yml + build-lin: name: Linux (Self build + no-assertions) if: github.repository == 'intel/llvm' @@ -40,7 +44,7 @@ jobs: build_configure_extra_args: --no-assertions --hip --cuda --native_cpu -DSYCL_ENABLE_STACK_PRINTING=ON -DSYCL_LIB_WITH_DEBUG_SYMBOL=ON e2e-lin: - needs: [build-lin] + needs: [detect_changes, build-lin] if: ${{ always() && !cancelled() && needs.build-lin.outputs.build_conclusion == 'success' }} strategy: fail-fast: false @@ -94,6 +98,13 @@ jobs: sycl_toolchain_archive: ${{ needs.build-lin.outputs.artifact_archive_name }} sycl_toolchain_decompress_command: ${{ needs.build-lin.outputs.artifact_decompress_command }} + # Do not install drivers on AMD and CUDA runners. + install_igc_driver: >- + ${{ github.event_name == 'pull_request' }} && + ${{ !contains(matrix.target_devices, 'cuda') && + !contains(matrix.target_devices, 'hip') && + contains(needs.detect_changes.outputs.filters, 'drivers') }} + build-win: if: | always()