Skip to content

Commit f26df80

Browse files
[CI] Use separate build/test in post-commit + add pull_request trigger (#10743)
This eliminates the usage of matrix generator in post-commit, following a similar change done in pre-commit earlier.
1 parent 56946aa commit f26df80

File tree

1 file changed

+37
-13
lines changed

1 file changed

+37
-13
lines changed

.github/workflows/sycl_post_commit.yml

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@ on:
77
- sycl-devops-pr/**
88
- llvmspirv_pulldown
99

10+
pull_request:
11+
branches:
12+
- sycl
13+
- sycl-devops-pr/**
14+
paths:
15+
- .github/workflow/sycl_post_commit.yml
16+
- .github/workflow/sycl_linux_build.yml
17+
- .github/workflow/sycl_linux_run_tests.yml
18+
- ./devops/actions/cleanup
19+
- ./devops/actions/cached_checkout
20+
1021
jobs:
11-
# This job generates matrix of tests for SYCL End-to-End tests
12-
test_matrix:
13-
name: Generate Test Matrix
14-
if: github.repository == 'intel/llvm'
15-
uses: ./.github/workflows/sycl_gen_test_matrix.yml
16-
with:
17-
lts_config: "l0_gen12;win_l0_gen12"
18-
linux_self_prod:
22+
build:
1923
name: Linux (Self build + shared libraries + no-assertions)
2024
if: github.repository == 'intel/llvm'
21-
needs: test_matrix
22-
uses: ./.github/workflows/sycl_linux_build_and_test.yml
25+
uses: ./.github/workflows/sycl_linux_build.yml
2326
with:
2427
build_cache_root: "/__w/llvm"
2528
build_cache_suffix: sprod_shared
@@ -29,11 +32,32 @@ jobs:
2932
build_image: "ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:build"
3033
cc: clang
3134
cxx: clang++
32-
lts_matrix: ${{ needs.test_matrix.outputs.lts_lx_matrix }}
33-
cts_matrix: ${{ needs.test_matrix.outputs.cts_matrix }}
34-
lts_aws_matrix: ${{ needs.test_matrix.outputs.lts_aws_matrix }}
3535
merge_ref: ''
3636

37+
test:
38+
needs: [build]
39+
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
40+
uses: ./.github/workflows/sycl_linux_run_tests.yml
41+
with:
42+
name: SYCL E2E on Intel Linux L0
43+
runner: '["Linux", "gen12"]'
44+
image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest
45+
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
46+
target_devices: ext_oneapi_level_zero:gpu
47+
ref: ${{ github.sha }}
48+
merge_ref: ''
49+
sycl_toolchain_artifact: sycl_linux_sprod_shared
50+
sycl_toolchain_archive: ${{ needs.build.outputs.artifact_archive_name }}
51+
sycl_toolchain_decompress_command: ${{ needs.build.outputs.artifact_decompress_command }}
52+
53+
# This job generates matrix of tests for SYCL End-to-End tests on Windows
54+
test_matrix:
55+
name: Generate Test Matrix
56+
if: github.repository == 'intel/llvm'
57+
uses: ./.github/workflows/sycl_gen_test_matrix.yml
58+
with:
59+
lts_config: "win_l0_gen12"
60+
3761
windows_default:
3862
name: Windows
3963
needs: test_matrix

0 commit comments

Comments
 (0)