File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
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
+ default : " "
16
+ type : string
17
+
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
+ default : " "
31
+ type : string
32
+
23
33
concurrency :
24
34
# Skip intermediate builds: always.
25
35
# Cancel intermediate builds: only if it is a pull request build.
57
67
uses : actions/setup-python@v4
58
68
with :
59
69
python-version : ' 3.11'
70
+
60
71
- name : Install Ninja
61
72
uses : llvm/actions/install-ninja@main
62
73
# actions/checkout deletes any existing files in the new git directory,
65
76
- uses : actions/checkout@v3
66
77
with :
67
78
fetch-depth : 250
79
+ - name : Install requirements.txt
80
+ if : inputs.projects == 'mlir'
81
+ run : pip install -r mlir/python/requirements.txt
68
82
- name : Setup ccache
69
83
uses : hendrikmuhs/ccache-action@v1
70
84
with :
85
99
# This should be a no-op for non-mac OSes
86
100
PKG_CONFIG_PATH : /usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig//12
87
101
with :
88
- cmake_args : ' -GNinja -DLLVM_ENABLE_PROJECTS="${{ inputs.projects }}" -DLLVM_TARGETS_TO_BUILD=host -DCMAKE_BUILD_TYPE=Release -DLLDB_INCLUDE_TESTS=OFF -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache'
102
+ cmake_args : >-
103
+ -GNinja
104
+ -DLLVM_ENABLE_PROJECTS="${{ inputs.projects }}"
105
+ -DLLVM_TARGETS_TO_BUILD=host
106
+ -DCMAKE_BUILD_TYPE=Release
107
+ -DLLDB_INCLUDE_TESTS=OFF
108
+ -DCMAKE_C_COMPILER_LAUNCHER=sccache
109
+ -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
110
+ -DLLVM_ENABLE_ASSERTIONS=ON
111
+ ${{ inputs.extra_cmake_args }}
112
+
89
113
build_target : ' ${{ inputs.build_target }}'
90
114
91
115
- name : Build and Test libclc
Original file line number Diff line number Diff line change 25
25
with :
26
26
build_target : check-mlir
27
27
projects : mlir
28
+ extra_cmake_args : -DMLIR_ENABLE_BINDINGS_PYTHON=ON
You can’t perform that action at this time.
0 commit comments