[CI] Use prebuilt E2E binaries when running on Windows Gen12 #17327
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SYCL Pre Commit on Windows | |
| on: | |
| pull_request: | |
| branches: | |
| - sycl | |
| - llvmspirv_pulldown | |
| - sycl-rel-** | |
| # Do not run builds if changes are only in the following locations | |
| paths-ignore: | |
| - '.github/ISSUE_TEMPLATE/**' | |
| - '.github/CODEOWNERS' | |
| - 'sycl/cts_exclude_filter/**' | |
| - 'sycl/doc/**' | |
| - 'sycl/gdb/**' | |
| - 'clang/docs/**' | |
| - '**.md' | |
| - '**.rst' | |
| - '.github/workflows/sycl-linux-*.yml' | |
| - '.github/workflows/sycl-precommit-aws.yml' | |
| - '.github/workflows/sycl-macos-*.yml' | |
| - '.github/workflows/sycl-nightly.yml' | |
| - '.github/workflows/sycl-rel-nightly.yml' | |
| - '.github/workflows/trivy.yml' | |
| - 'devops/containers/**' | |
| - 'devops/actions/build_container/**' | |
| permissions: read-all | |
| concurrency: | |
| # Cancel a currently running workflow from the same PR, branch or tag. | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| detect_changes: | |
| uses: ./.github/workflows/sycl-detect-changes.yml | |
| build: | |
| needs: [detect_changes] | |
| if: | | |
| always() && success() | |
| && github.repository == 'intel/llvm' | |
| uses: ./.github/workflows/sycl-windows-build.yml | |
| with: | |
| changes: ${{ needs.detect_changes.outputs.filters }} | |
| build-e2e: | |
| needs: build | |
| # Continue if build was successful. | |
| if: | | |
| always() | |
| && !cancelled() | |
| && needs.build.outputs.build_conclusion == 'success' | |
| uses: ./.github/workflows/sycl-windows-run-tests.yml | |
| with: | |
| name: Build Windows E2E tests | |
| runner: '["Windows", "build-e2e"]' | |
| sycl_toolchain_archive: ${{ needs.build.outputs.artifact_archive_name }} | |
| e2e_testing_mode: build-only | |
| extra_lit_opts: --param sycl_build_targets="spir" | |
| e2e_binaries_artifact: sycl_windows_e2ebin | |
| run_prebuilt_e2e_tests: | |
| needs: [build, build-e2e] | |
| # Continue if build was successful. | |
| if: | | |
| always() | |
| && !cancelled() | |
| && needs.build.outputs.build_conclusion == 'success' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: Intel GEN12 Graphics with Level Zero | |
| runner: '["Windows","gen12"]' | |
| uses: ./.github/workflows/sycl-windows-run-tests.yml | |
| with: | |
| name: ${{ matrix.name }} | |
| runner: ${{ matrix.runner }} | |
| sycl_toolchain_archive: ${{ needs.build.outputs.artifact_archive_name }} | |
| e2e_testing_mode: run-only | |
| e2e_binaries_artifact: sycl_windows_e2ebin | |
| run_full_e2e_tests: | |
| needs: build | |
| # Continue if build was successful. | |
| if: | | |
| always() | |
| && !cancelled() | |
| && needs.build.outputs.build_conclusion == 'success' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: Intel Battlemage Graphics with Level Zero | |
| runner: '["Windows","bmg"]' | |
| uses: ./.github/workflows/sycl-windows-run-tests.yml | |
| with: | |
| name: ${{ matrix.name }} | |
| runner: ${{ matrix.runner }} | |
| sycl_toolchain_archive: ${{ needs.build.outputs.artifact_archive_name }} | |
| e2e_testing_mode: full |