-
Notifications
You must be signed in to change notification settings - Fork 822
107 lines (100 loc) · 3.75 KB
/
sycl-detect-changes.yml
File metadata and controls
107 lines (100 loc) · 3.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: Identify changed files
on:
workflow_call:
outputs:
filters:
description: Matched filters
value: ${{ jobs.need_check.outputs.filters }}
permissions: read-all
jobs:
need_check:
name: Decide which tests could be affected by the changes
runs-on: [Linux, aux-tasks]
timeout-minutes: 3
outputs:
filters: ${{ steps.result.outputs.result }}
steps:
- name: Set changed_files
id: changed_files
shell: bash
run: |
echo "changed_file_cnt=${{ github.event.pull_request.changed_files }}" >> $GITHUB_OUTPUT
- name: Check file changes
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d
if: steps.changed_files.outputs.changed_file_cnt < 500
id: changes
with:
filters: |
llvm: &llvm
- 'llvm/**'
llvm_spirv: &llvm_spirv
- *llvm
- 'llvm-spirv/**'
clang: &clang
- *llvm
- 'clang/**'
sycl_jit: &sycl-jit
- *llvm
- 'sycl-jit/**'
xptifw: &xptifw
- 'xptifw/**'
libclc: &libclc
- *llvm_spirv
- *clang
- 'libclc/**'
sycl: &sycl
- *clang
- *sycl-jit
- *llvm_spirv
- *xptifw
- *libclc
- 'sycl/*'
- 'sycl/!(test-e2e|doc)/**'
- 'libdevice/**'
ci:
- .github/workflows/**
# devops/* contains config files, including drivers versions.
# Allow them to be tested in pre-commit.
- devops/*/**
drivers:
- devops/dependencies.json
- devops/scripts/install_drivers.sh
benchmarks:
- 'devops/scripts/benchmarks/**'
- 'devops/actions/run-tests/benchmark/**'
- '.github/workflows/sycl-ur-perf-benchmarking.yml'
perf-tests:
- sycl/test-e2e/PerformanceTests/**
esimd:
- 'llvm/lib/SYCLLowerIR/ESIMD/**'
- 'llvm/lib/SYCLLowerIR/LowerInvokeSimd.cpp'
- 'llvm/include/llvm/SYCLLowerIR/LowerInvokeSimd.h'
- 'sycl/include/std/experimental/simd.hpp'
- 'sycl/include/std/experimental/simd.hpp'
- 'sycl/include/sycl/ext/intel/esimd.hpp'
- 'sycl/include/sycl/ext/intel/esimd/**'
- 'sycl/include/sycl/ext/intel/esimd.hpp'
- 'sycl/include/sycl/ext/intel/experimental/esimd/**'
- 'sycl/include/sycl/ext/oneapi/experimental/invoke_simd.hpp'
- 'sycl/include/sycl/ext/oneapi/experimental/detail/invoke_simd_types.hpp'
- 'sycl/test-e2e/(ESIMD|InvokeSimd)/**'
ur:
- 'unified-runtime/**'
- .github/workflows/ur-*
ur_cuda_adapter:
- 'unified-runtime/source/adapters/cuda/**'
ur_offload_adapter:
- 'unified-runtime/include/**'
- 'unified-runtime/source/adapters/offload/**'
- '.github/workflows/ur-build-offload.yml'
- name: Set output
id: result
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
script: |
if (${{steps.changed_files.outputs.changed_file_cnt}} < 500) {
return '${{ steps.changes.outputs.changes }}';
}
// Treat everything as changed for huge PRs.
return ["llvm", "llvm_spirv", "clang", "sycl_jit", "xptifw", "libclc", "sycl", "ci", "esimd", "ur", "ur_cuda_adapter", "ur_offload_adapter"];
- run: echo '${{ steps.result.outputs.result }}'