File tree Expand file tree Collapse file tree 2 files changed +49
-9
lines changed Expand file tree Collapse file tree 2 files changed +49
-9
lines changed Original file line number Diff line number Diff line change 10
10
required : false
11
11
projects :
12
12
required : false
13
+ extra_cmake_args :
14
+ required : false
15
+ os_list :
16
+ required : false
17
+ default : ' ["ubuntu-latest", "windows-2019", "macOS-11"]'
13
18
workflow_call :
14
19
inputs :
15
20
build_target :
20
25
required : true
21
26
type : string
22
27
28
+ extra_cmake_args :
29
+ required : false
30
+ type : string
31
+
32
+ os_list :
33
+ required : false
34
+ type : string
35
+ # Use windows-2019 due to:
36
+ # https://developercommunity.visualstudio.com/t/Prev-Issue---with-__assume-isnan-/1597317
37
+ # We're using a specific version of macOS due to:
38
+ # https://github.com/actions/virtual-environments/issues/5900
39
+ default : ' ["ubuntu-latest", "windows-2019", "macOS-11"]'
40
+
23
41
concurrency :
24
42
# Skip intermediate builds: always.
25
43
# Cancel intermediate builds: only if it is a pull request build.
35
53
strategy :
36
54
fail-fast : false
37
55
matrix :
38
- os :
39
- - ubuntu-latest
40
- # Use windows-2019 due to:
41
- # https://developercommunity.visualstudio.com/t/Prev-Issue---with-__assume-isnan-/1597317
42
- - windows-2019
43
- # We're using a specific version of macOS due to:
44
- # https://github.com/actions/virtual-environments/issues/5900
45
- - macOS-11
56
+ os : ${{ fromJSON(inputs.os_list) }}
46
57
steps :
47
58
- name : Setup Windows
48
59
if : startsWith(matrix.os, 'windows')
85
96
# This should be a no-op for non-mac OSes
86
97
PKG_CONFIG_PATH : /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig//12
87
98
with :
88
- cmake_args : ' -GNinja -DLLVM_ENABLE_PROJECTS="${{ inputs.projects }}" -DCMAKE_BUILD_TYPE=Release -DLLDB_INCLUDE_TESTS=OFF -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache'
99
+ cmake_args : ' -GNinja -DLLVM_ENABLE_PROJECTS="${{ inputs.projects }}" -DCMAKE_BUILD_TYPE=Release -DLLDB_INCLUDE_TESTS=OFF -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache ${{ inputs.extra_cmake_args }} '
89
100
build_target : ' ${{ inputs.build_target }}'
90
101
91
102
- name : Build and Test libclc
Original file line number Diff line number Diff line change
1
+ name : SPIR-V Tests
2
+
3
+ permissions :
4
+ contents : read
5
+
6
+ on :
7
+ workflow_dispatch :
8
+ pull_request :
9
+ paths :
10
+ - ' llvm/lib/Target/SPIRV/**'
11
+ - ' llvm/test/CodeGen/SPIRV/**'
12
+ - ' .github/workflows/spirv-tests.yml'
13
+
14
+ concurrency :
15
+ # Skip intermediate builds: always.
16
+ # Cancel intermediate builds: only if it is a pull request build.
17
+ group : ${{ github.workflow }}-${{ github.ref }}
18
+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
19
+
20
+ jobs :
21
+ check_spirv :
22
+ if : github.repository_owner == 'llvm'
23
+ name : Test SPIR-V
24
+ uses : ./.github/workflows/llvm-project-tests.yml
25
+ with :
26
+ build_target : check-llvm-codegen-spirv
27
+ projects :
28
+ extra_cmake_args : ' -DLLVM_TARGETS_TO_BUILD="" -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD="SPIRV"'
29
+ os_list : ' ["ubuntu-latest"]'
You can’t perform that action at this time.
0 commit comments