forked from intel/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
90 lines (84 loc) · 3.03 KB
/
sycl-detect-changes.yml
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
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: Check file changes
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
id: changes
with:
filters: |
llvm: &llvm
- 'llvm/**'
llvm_spirv: &llvm_spirv
- *llvm
- 'llvm-spirv/**'
clang: &clang
- *llvm
- 'clang/**'
sycl_fusion: &sycl-fusion
- *llvm
- 'sycl-fusion/**'
xptifw: &xptifw
- 'xptifw/**'
libclc: &libclc
- *llvm_spirv
- *clang
- 'libclc/**'
sycl: &sycl
- *clang
- *sycl-fusion
- *llvm_spirv
- *xptifw
- *libclc
- 'sycl/*'
- 'sycl/!(test-e2e|doc)/**'
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
devigccfg:
- devops/dependencies-igc-dev.json
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)/**'
- name: Set output
id: result
uses: actions/github-script@v7
with:
script: |
console.log("Number of files changed:");
console.log(context.payload.pull_request.changed_files);
if (context.payload.pull_request.changed_files < 500) {
return '${{ steps.changes.outputs.changes }}';
}
// Treat everything as changed for huge PRs.
return ["llvm", "llvm_spirv", "clang", "sycl_fusion", "xptifw", "libclc", "sycl", "ci", "esimd"];
- run: echo '${{ steps.result.outputs.result }}'