File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ permissions: read-all
8
8
jobs :
9
9
build :
10
10
name : Build
11
- runs-on : [self-hosted]
11
+ runs-on : [self-hosted, 0.0.1 ]
12
12
13
13
steps :
14
14
- uses : actions/checkout@v4
24
24
25
25
- name : Build
26
26
run : |
27
+ python3 -m pip install -r mlir/python/requirements.txt
27
28
mkdir llvm-install
28
- cmake -G Ninja llvm -B build -DCMAKE_INSTALL_PREFIX=llvm-install \
29
+ cmake -G Ninja llvm -B build -DCMAKE_INSTALL_PREFIX=llvm-install -DMLIR_ENABLE_BINDINGS_PYTHON=ON -DPython3_EXECUTABLE=$(which python3) \
29
30
-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=true -DLLVM_ENABLE_PROJECTS="mlir" -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_INSTALL_UTILS=true -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DLLVM_INSTALL_GTEST=ON
30
31
cmake --build build --target install
31
32
cd llvm-install
Original file line number Diff line number Diff line change 21
21
steps :
22
22
- uses : actions/checkout@v4
23
23
24
+ - name : Set LLVM hash
25
+ run : |
26
+ echo LLVM_HASH=$(cat cmake/llvm-version.txt) >>$GITHUB_ENV
27
+
28
+ - name : Fetch requirements for python binding
29
+ uses : actions/checkout@v4
30
+ with :
31
+ repository : llvm/llvm-project
32
+ ref : ${{ env.LLVM_HASH }}
33
+ sparse-checkout : mlir/python/requirements.txt
34
+ sparse-checkout-cone-mode : false
35
+ path : llvm-dep
36
+
37
+ - name : Install requirements
38
+ run : python3 -m pip install -r llvm-dep/mlir/python/requirements.txt
39
+
24
40
- name : Build
25
41
run : |
26
42
scripts/compile.sh
You can’t perform that action at this time.
0 commit comments