Skip to content

SYCL Release Branch Nightly #388

SYCL Release Branch Nightly

SYCL Release Branch Nightly #388

name: SYCL Release Branch Nightly
on:
workflow_dispatch:
inputs:
release_version:
type: string
permissions: read-all
jobs:
ubuntu2204_build:
uses: ./.github/workflows/sycl-linux-build.yml
secrets: inherit
with:
build_cache_root: "/__w/"
build_artifact_suffix: default
build_configure_extra_args: |
'-DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_INSTALL_LIBDIR=lib \
--disable-jit --no-assertions --add_security_flags=sanitize --hip --cuda \
-DLLVM_VC_REPOSITORY="${{ github.repositoryUrl }}" \
-DCLANG_VC_REPOSITORY="${{ github.repositoryUrl }}" \
-DLLVM_VC_REVISION="${{ inputs.release_version || format('{0}:{1} Nightly build', github.ref_name, github.sha) }}" \
-DCLANG_VC_REVISION="${{ inputs.release_version || format('{0}:{1} Nightly build', github.ref_name, github.sha) }}"
build_image: ghcr.io/intel/llvm/release_build:latest
pack_release: 'true'
# We upload the build for people to download/use, override its name and
# prefer widespread gzip compression.
artifact_archive_name: sycl_linux.tar.gz
# ubuntu2204_test:
# needs: [ubuntu2204_build]
# if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
# strategy:
# fail-fast: false
# matrix:
# include:
# - name: AMD/HIP
# runner: '["Linux", "amdgpu"]'
# image_options: -u 1001 --device=/dev/dri --device=/dev/kfd
# target_devices: hip:gpu
# - name: NVIDIA/CUDA
# runner: '["Linux", "cuda"]'
# image_options: -u 1001 --gpus all --cap-add SYS_ADMIN
# target_devices: cuda:gpu
# - name: Intel L0 Gen12 GPU
# runner: '["Linux", "gen12"]'
# image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
# target_devices: level_zero:gpu
# extra_lit_opts: --param gpu-intel-gen12=True
# - name: Intel L0 Battlemage GPU
# runner: '["Linux", "bmg"]'
# image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
# target_devices: level_zero:gpu
# - name: Intel L0 Arc A-Series GPU
# runner: '["Linux", "arc"]'
# image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
# target_devices: level_zero:gpu
# - name: Intel OCL Gen12 GPU
# runner: '["Linux", "gen12"]'
# image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
# target_devices: opencl:gpu
# extra_lit_opts: --param gpu-intel-gen12=True
# - name: Intel OCL CPU
# runner: '["Linux", "gen12"]'
# image_options: -u 1001 --privileged --cap-add SYS_ADMIN
# target_devices: opencl:cpu
# uses: ./.github/workflows/sycl-linux-run-tests.yml
# with:
# name: ${{ matrix.name }}
# runner: ${{ matrix.runner }}
# image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps-ae0e85c8391ba07b7c895e36cfb8a78cacd421dd
# image_options: ${{ matrix.image_options }}
# target_devices: ${{ matrix.target_devices }}
# tests_selector: e2e
# extra_lit_opts: ${{ matrix.extra_lit_opts }}
# repo_ref: ${{ github.sha }}
# sycl_toolchain_artifact: sycl_linux_default
# sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }}
# sycl_toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }}
build-win:
uses: ./.github/workflows/sycl-windows-build.yml
with:
build_configure_extra_args: |
-DLLVM_SPIRV_ENABLE_LIBSPIRV_DIS=off -DCMAKE_POSITION_INDEPENDENT_CODE=ON ^
--disable-jit --no-assertions --add_security_flags=sanitize ^
-DLLVM_VC_REPOSITORY="${{ github.repositoryUrl }}" ^
-DCLANG_VC_REPOSITORY="${{ github.repositoryUrl }}" ^
-DLLVM_VC_REVISION="${{ inputs.release_version || format('{0}:{1} Nightly build', github.ref_name, github.sha) }}" ^
-DCLANG_VC_REVISION="${{ inputs.release_version || format('{0}:{1} Nightly build', github.ref_name, github.sha) }}"
pack_release: 'true'
# We upload both Linux/Windows build via Github's "Releases"
# functionality, make sure Linux/Windows names follow the same pattern.
artifact_archive_name: sycl_windows.tar.gz
# e2e-win:
# needs: build-win
# # Continue if build was successful.
# if: |
# always()
# && !cancelled()
# && needs.build-win.outputs.build_conclusion == 'success'
# strategy:
# fail-fast: false
# matrix:
# include:
# - name: Intel GEN12 Graphics with Level Zero
# runner: '["Windows","gen12"]'
# - 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
# sycl_toolchain_archive: ${{ needs.build-win.outputs.artifact_archive_name }}
# extra_lit_opts: ${{ matrix.extra_lit_opts }}
# repo_ref: ${{ github.sha }}
# build-sycl-cts:
# needs: ubuntu2204_build
# if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
# uses: ./.github/workflows/sycl-linux-run-tests.yml
# with:
# name: Build SYCL-CTS
# runner: '["Linux", "build"]'
# cts_testing_mode: 'build-only'
# image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps-ae0e85c8391ba07b7c895e36cfb8a78cacd421dd
# image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
# tests_selector: cts
# repo_ref: ${{ github.sha }}
# # Author: Tom Deakin <[email protected]>
# # Date: Thu Jul 10 16:45:48 2025 +0100
# # Merge pull request #1102 from steffenlarsen/steffen/remove_secondary_queue_exceptions
# # Remove expected exceptions for secondary queue
# tests_ref: 19e4ed34377c8a8a354d701772427be8c5430b0d
# sycl_toolchain_artifact: sycl_linux_default
# sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }}
# sycl_toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }}
# sycl_cts_artifact: sycl_cts_bin_linux
# run-sycl-cts:
# needs: [ubuntu2204_build, build-sycl-cts]
# if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
# strategy:
# fail-fast: false
# matrix:
# include:
# - name: SYCL-CTS on OCL CPU
# runner: '["Linux", "gen12"]'
# image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
# target_devices: opencl:cpu
# - name: SYCL-CTS on L0 gen12
# runner: '["Linux", "gen12"]'
# image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
# target_devices: level_zero:gpu
# uses: ./.github/workflows/sycl-linux-run-tests.yml
# with:
# name: ${{ matrix.name }}
# runner: ${{ matrix.runner }}
# cts_testing_mode: 'run-only'
# image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps-ae0e85c8391ba07b7c895e36cfb8a78cacd421dd
# image_options: ${{ matrix.image_options }}
# target_devices: ${{ matrix.target_devices }}
# tests_selector: cts
# repo_ref: ${{ github.sha }}
# sycl_toolchain_artifact: sycl_linux_default
# sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }}
# sycl_toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }}
# sycl_cts_artifact: sycl_cts_bin_linux
# hardening-check:
# needs: [ubuntu2204_build, build-win]
# if: |
# always()
# && !cancelled()
# && needs.ubuntu2204_build.outputs.build_conclusion == 'success'
# && needs.build-win.outputs.build_conclusion == 'success'
# uses: ./.github/workflows/sycl-hardening-check.yml
# with:
# sycl_linux_artifact: sycl_linux_release
# sycl_linux_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }}
# sycl_linux_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }}
# sycl_windows_artifact: sycl_windows_release
# sycl_windows_archive: ${{ needs.build-win.outputs.artifact_archive_name }}