|
1 | | -# The actual version of this workflow can be found on the latest sycl-rel-* |
2 | | -# branch. This file is still needed to launch the workflow on another branches. |
3 | | - |
4 | 1 | name: SYCL Release Branch Nightly |
5 | 2 |
|
6 | 3 | on: |
7 | 4 | workflow_dispatch: |
8 | 5 |
|
| 6 | +permissions: read-all |
| 7 | + |
9 | 8 | jobs: |
10 | | - dummy: |
11 | | - runs-on: ubuntu-latest |
12 | | - steps: |
13 | | - - run: echo "Doing nothing" |
| 9 | + ubuntu2204_build: |
| 10 | + uses: ./.github/workflows/sycl-linux-build.yml |
| 11 | + secrets: inherit |
| 12 | + with: |
| 13 | + build_cache_root: "/__w/" |
| 14 | + build_artifact_suffix: default |
| 15 | + build_configure_extra_args: '-DCMAKE_INSTALL_LIBDIR=lib --disable-jit --no-assertions --add_security_flags=sanitize --hip --cuda' |
| 16 | + build_image: ghcr.io/intel/llvm/release_build:latest |
| 17 | + pack_release: 'true' |
| 18 | + |
| 19 | + # We upload the build for people to download/use, override its name and |
| 20 | + # prefer widespread gzip compression. |
| 21 | + artifact_archive_name: sycl_linux.tar.gz |
| 22 | + |
| 23 | + ubuntu2204_test: |
| 24 | + needs: [ubuntu2204_build] |
| 25 | + if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }} |
| 26 | + strategy: |
| 27 | + fail-fast: false |
| 28 | + matrix: |
| 29 | + include: |
| 30 | + - name: AMD/HIP |
| 31 | + runner: '["Linux", "amdgpu"]' |
| 32 | + image_options: -u 1001 --device=/dev/dri --device=/dev/kfd |
| 33 | + target_devices: hip:gpu |
| 34 | + |
| 35 | + - name: NVIDIA/CUDA |
| 36 | + runner: '["Linux", "cuda"]' |
| 37 | + image_options: -u 1001 --gpus all --cap-add SYS_ADMIN |
| 38 | + target_devices: cuda:gpu |
| 39 | + |
| 40 | + - name: Intel L0 Gen12 GPU |
| 41 | + runner: '["Linux", "gen12"]' |
| 42 | + image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN |
| 43 | + target_devices: level_zero:gpu |
| 44 | + extra_lit_opts: --param gpu-intel-gen12=True |
| 45 | + |
| 46 | + - name: Intel L0 Battlemage GPU |
| 47 | + runner: '["Linux", "bmg"]' |
| 48 | + image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN |
| 49 | + target_devices: level_zero:gpu |
| 50 | + |
| 51 | + - name: Intel L0 Arc A-Series GPU |
| 52 | + runner: '["Linux", "arc"]' |
| 53 | + image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN |
| 54 | + target_devices: level_zero:gpu |
| 55 | + |
| 56 | + - name: Intel OCL Gen12 GPU |
| 57 | + runner: '["Linux", "gen12"]' |
| 58 | + image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN |
| 59 | + target_devices: opencl:gpu |
| 60 | + extra_lit_opts: --param gpu-intel-gen12=True |
| 61 | + |
| 62 | + - name: Intel OCL CPU |
| 63 | + runner: '["Linux", "gen12"]' |
| 64 | + image_options: -u 1001 --privileged --cap-add SYS_ADMIN |
| 65 | + target_devices: opencl:cpu |
| 66 | + uses: ./.github/workflows/sycl-linux-run-tests.yml |
| 67 | + with: |
| 68 | + name: ${{ matrix.name }} |
| 69 | + runner: ${{ matrix.runner }} |
| 70 | + image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps-ae0e85c8391ba07b7c895e36cfb8a78cacd421dd |
| 71 | + image_options: ${{ matrix.image_options }} |
| 72 | + target_devices: ${{ matrix.target_devices }} |
| 73 | + tests_selector: e2e |
| 74 | + extra_lit_opts: ${{ matrix.extra_lit_opts }} |
| 75 | + repo_ref: ${{ github.sha }} |
| 76 | + sycl_toolchain_artifact: sycl_linux_default |
| 77 | + sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }} |
| 78 | + sycl_toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }} |
| 79 | + |
| 80 | + build-win: |
| 81 | + uses: ./.github/workflows/sycl-windows-build.yml |
| 82 | + with: |
| 83 | + build_configure_extra_args: '--disable-jit --no-assertions --add_security_flags=sanitize' |
| 84 | + pack_release: 'true' |
| 85 | + |
| 86 | + # We upload both Linux/Windows build via Github's "Releases" |
| 87 | + # functionality, make sure Linux/Windows names follow the same pattern. |
| 88 | + artifact_archive_name: sycl_windows.tar.gz |
| 89 | + |
| 90 | + e2e-win: |
| 91 | + needs: build-win |
| 92 | + # Continue if build was successful. |
| 93 | + if: | |
| 94 | + always() |
| 95 | + && !cancelled() |
| 96 | + && needs.build-win.outputs.build_conclusion == 'success' |
| 97 | + strategy: |
| 98 | + fail-fast: false |
| 99 | + matrix: |
| 100 | + include: |
| 101 | + - name: Intel GEN12 Graphics with Level Zero |
| 102 | + runner: '["Windows","gen12"]' |
| 103 | + |
| 104 | + - name: Intel Battlemage Graphics with Level Zero |
| 105 | + runner: '["Windows","bmg"]' |
| 106 | + uses: ./.github/workflows/sycl-windows-run-tests.yml |
| 107 | + with: |
| 108 | + name: ${{ matrix.name }} |
| 109 | + runner: ${{ matrix.runner }} |
| 110 | + target_devices: level_zero:gpu |
| 111 | + sycl_toolchain_archive: ${{ needs.build-win.outputs.artifact_archive_name }} |
| 112 | + extra_lit_opts: ${{ matrix.extra_lit_opts }} |
| 113 | + repo_ref: ${{ github.sha }} |
| 114 | + |
| 115 | + build-sycl-cts: |
| 116 | + needs: ubuntu2204_build |
| 117 | + if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }} |
| 118 | + uses: ./.github/workflows/sycl-linux-run-tests.yml |
| 119 | + with: |
| 120 | + name: Build SYCL-CTS |
| 121 | + runner: '["Linux", "build"]' |
| 122 | + cts_testing_mode: 'build-only' |
| 123 | + image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps-ae0e85c8391ba07b7c895e36cfb8a78cacd421dd |
| 124 | + image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN |
| 125 | + tests_selector: cts |
| 126 | + repo_ref: ${{ github.sha }} |
| 127 | + # Author: Tom Deakin <[email protected]> |
| 128 | + # Date: Thu Mar 20 15:31:29 2025 +0000 |
| 129 | + # Merge pull request #1052 from dyniols/cts_test_for_shorthand_aliases_address_spaces |
| 130 | + # Add tests for the new shorthand aliases of address spaces |
| 131 | + tests_ref: 87f8677c4b67cfe56ad6f09246036f10c306c977 |
| 132 | + sycl_toolchain_artifact: sycl_linux_default |
| 133 | + sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }} |
| 134 | + sycl_toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }} |
| 135 | + sycl_cts_artifact: sycl_cts_bin_linux |
| 136 | + |
| 137 | + run-sycl-cts: |
| 138 | + needs: [ubuntu2204_build, build-sycl-cts] |
| 139 | + if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }} |
| 140 | + strategy: |
| 141 | + fail-fast: false |
| 142 | + matrix: |
| 143 | + include: |
| 144 | + - name: SYCL-CTS on OCL CPU |
| 145 | + runner: '["Linux", "gen12"]' |
| 146 | + image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN |
| 147 | + target_devices: opencl:cpu |
| 148 | + |
| 149 | + - name: SYCL-CTS on L0 gen12 |
| 150 | + runner: '["Linux", "gen12"]' |
| 151 | + image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN |
| 152 | + target_devices: level_zero:gpu |
| 153 | + uses: ./.github/workflows/sycl-linux-run-tests.yml |
| 154 | + with: |
| 155 | + name: ${{ matrix.name }} |
| 156 | + runner: ${{ matrix.runner }} |
| 157 | + cts_testing_mode: 'run-only' |
| 158 | + image: ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps-ae0e85c8391ba07b7c895e36cfb8a78cacd421dd |
| 159 | + image_options: ${{ matrix.image_options }} |
| 160 | + target_devices: ${{ matrix.target_devices }} |
| 161 | + tests_selector: cts |
| 162 | + repo_ref: ${{ github.sha }} |
| 163 | + sycl_toolchain_artifact: sycl_linux_default |
| 164 | + sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }} |
| 165 | + sycl_toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }} |
| 166 | + sycl_cts_artifact: sycl_cts_bin_linux |
| 167 | + |
| 168 | + hardening-check: |
| 169 | + needs: [ubuntu2204_build, build-win] |
| 170 | + if: | |
| 171 | + always() |
| 172 | + && !cancelled() |
| 173 | + && needs.ubuntu2204_build.outputs.build_conclusion == 'success' |
| 174 | + && needs.build-win.outputs.build_conclusion == 'success' |
| 175 | + uses: ./.github/workflows/sycl-hardening-check.yml |
| 176 | + with: |
| 177 | + sycl_linux_artifact: sycl_linux_release |
| 178 | + sycl_linux_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }} |
| 179 | + sycl_linux_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }} |
| 180 | + |
| 181 | + sycl_windows_artifact: sycl_windows_release |
| 182 | + sycl_windows_archive: ${{ needs.build-win.outputs.artifact_archive_name }} |
0 commit comments