File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 3
3
4
4
mkdir -p circt/build
5
5
cd circt/build
6
- cmake .. \
6
+ cmake -G Ninja .. \
7
7
-DCMAKE_BUILD_TYPE=Release \
8
8
-DMLIR_DIR=$PWD /../llvm/build/lib/cmake/mlir \
9
9
-DLLVM_DIR=$PWD /../llvm/build/lib/cmake/llvm \
10
10
-DLLVM_ENABLE_ASSERTIONS=ON
11
11
12
- cmake --build . -- -j$( nproc)
12
+ ninja -j$( nproc)
13
+
Original file line number Diff line number Diff line change 3
3
4
4
mkdir -p circt/llvm/build
5
5
cd circt/llvm/build
6
- cmake ../llvm \
6
+ cmake -G Ninja ../llvm \
7
7
-DCMAKE_BUILD_TYPE=Release \
8
8
-DLLVM_BUILD_EXAMPLES=OFF \
9
9
-DLLVM_ENABLE_ASSERTIONS=ON \
@@ -14,4 +14,4 @@ cmake ../llvm \
14
14
-DLLVM_OPTIMIZED_TABLEGEN=ON \
15
15
-DLLVM_TARGETS_TO_BUILD=" host"
16
16
17
- cmake --build . -- -j$( nproc)
17
+ ninja -j$( nproc)
Original file line number Diff line number Diff line change 5
5
jobs :
6
6
lints :
7
7
name : Lints
8
- runs-on : ubuntu-latest
8
+ runs-on : ubuntu-22.04
9
9
steps :
10
10
- name : Checkout sources
11
11
uses : actions/checkout@v2
32
32
33
33
check :
34
34
name : Checks
35
- runs-on : ubuntu-latest
35
+ runs-on : ubuntu-22.04
36
36
steps :
37
37
- name : Checkout sources
38
38
uses : actions/checkout@v2
64
64
65
65
- name : Rebuild LLVM
66
66
if : steps.cache-llvm.outputs.cache-hit != 'true'
67
- run : .github/build-llvm.sh
67
+ run : |
68
+ sudo apt-get install ninja-build
69
+ .github/build-llvm.sh
68
70
69
71
- name : Upload LLVM to cache
70
72
if : steps.cache-llvm.outputs.cache-hit != 'true'
83
85
84
86
- name : Rebuild CIRCT
85
87
if : steps.cache-circt.outputs.cache-hit != 'true'
86
- run : .github/build-circt.sh
88
+ run : |
89
+ sudo apt-get install ninja-build
90
+ .github/build-circt.sh
87
91
88
92
- name : Upload CIRCT to cache
89
93
if : steps.cache-circt.outputs.cache-hit != 'true'
You can’t perform that action at this time.
0 commit comments