Skip to content

test

test #4

name: SYCL Pre Commit on Windows

Check failure on line 1 in .github/workflows/sycl-windows-precommit.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/sycl-windows-precommit.yml

Invalid workflow file

(Line: 54, Col: 9): Unrecognized function: 'never'. Located at position 1 within expression: never() && success() && github.repository == 'intel/llvm'
on:
pull_request:
branches:
- sycl
- llvmspirv_pulldown
- sycl-rel-**
# Do not run builds if changes are only in the following locations
# Note: benchmark-related paths are the same as in sycl-ur-perf-benchmarking.yml (to run there instead)
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/sycl-rel-nightly-launch.yml'
- '.github/workflows/sycl-trivy.yml'
- '.github/workflows/sycl-coverity.yml'
- '.github/workflows/sycl-weekly.yml'
- 'devops/containers/**'
- 'devops/actions/build_container/**'
- 'devops/compat_ci_exclude.sycl-rel-6_2'
- 'unified-runtime/examples/**'
- 'unified-runtime/scripts/**'
- 'unified-runtime/test/**'
- 'unified-runtime/third_party/**'
- 'unified-runtime/tools/**'
- 'devops/scripts/benchmarks/**'
- 'devops/actions/run-tests/benchmark/**'
- '.github/workflows/sycl-ur-perf-benchmarking.yml'
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: |
never() && success()
&& github.repository == 'intel/llvm'
uses: ./.github/workflows/sycl-windows-build.yml
with:
changes: ${{ needs.detect_changes.outputs.filters }}
e2e_binaries_artifact: sycl_windows_e2ebin
e2e_binaries_new_offload_model_artifact: sycl_windows_e2ebin_with_new_offload_model
build_blender_deps:
# needs: build
if: |
!cancelled()
# && needs.build.outputs.build_conclusion == 'success'
runs-on: ${{ fromJSON('["Windows","blender"]') }}
name: Build and Test Blender
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
sparse-checkout: |
devops/
- name: Download Toolchain
uses: actions/download-artifact@v7
with:
artifact-ids: 6213524008
repository: intel/llvm
run-id: 23831325486
github-token: ${{ github.token }}
# name: sycl_windows_default
- name: Extract Toolchain
shell: bash
run: |
rm -rf install
mkdir install
tar -xf sycl_windows.tar.gz -C install
rm sycl_windows.tar.gz
- name: Build and test Blender
uses: ./devops/actions/blender
with:
workspace: ${{ github.workspace }}
c_compiler: ${{ github.workspace }}/install/bin/clang.exe
cxx_compiler: ${{ github.workspace }}/install/bin/clang++.exe
run_prebuilt_e2e_tests:
needs: build
# Continue if build was successful.
if: |
!cancelled()
&& needs.build.outputs.build_conclusion == 'success'
strategy:
fail-fast: false
matrix:
include:
- name: Intel GEN12 Graphics with Level Zero
runner: '["Windows","gen12"]'
- name: Intel Arc Graphics with Level Zero
runner: '["Windows","arc"]'
- 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 }}
target_devices: "level_zero:gpu"
toolchain_artifact_filename: ${{ needs.build.outputs.toolchain_artifact_filename }}
testing_mode: run-only
binaries_artifact: sycl_windows_e2ebin
run_prebuilt_e2e_with_new_offload_model_tests:
needs: build
# Continue if build was successful.
if: |
!cancelled() &&
needs.build.outputs.build_conclusion == 'success' &&
contains(github.event.pull_request.labels.*.name, 'new-offload-model')
strategy:
fail-fast: false
matrix:
include:
- name: New Offload Model / Intel GEN12 Graphics with Level Zero
runner: '["Windows","gen12"]'
- name: New Offload Model / Intel Arc Graphics with Level Zero
runner: '["Windows","arc"]'
- name: New Offload Model / Intel Battlemage Graphics with Level Zero
runner: '["Windows","bmg"]'
uses: ./.github/workflows/sycl-windows-run-tests.yml
with:
name: ${{ matrix.name }}
runner: ${{ matrix.runner }}
target_devices: "level_zero:gpu"
toolchain_artifact_filename: ${{ needs.build.outputs.toolchain_artifact_filename }}
testing_mode: run-only
binaries_artifact: sycl_windows_e2ebin_with_new_offload_model
extra_lit_opts: --param enable_new_offload_model=True