File tree Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change 15
15
fail-fast : false
16
16
matrix :
17
17
build : ["Release"] # , "Debug"] # "RelWithDebInfo"
18
- os : [ubuntu-18.04 ]
18
+ os : [ubuntu-latest ]
19
19
compiler : [gcc, clang]
20
20
cxxcompiler : [g++, clang++]
21
21
exclude :
@@ -26,36 +26,40 @@ jobs:
26
26
27
27
timeout-minutes : 240
28
28
steps :
29
- - name : add dependencies
30
- run : sudo apt-get install -y ninja-build # cmake binutils-gold binutils binutils-dev ${{ matrix.compiler }} ${{ matrix.linker-pkg }}
31
-
32
- - uses : actions/checkout@v2
29
+ - uses : actions/checkout@v3
33
30
with :
34
31
fetch-depth : 1
35
32
path : src
36
33
submodules : ' recursive'
37
34
38
- - name : setup cymbl
39
- run : |
40
- cd /
41
- sudo wget --no-verbose https://github.com/cymbl/cymbl.github.io/releases/download/0.0.1/LLVM-11.0.0git-Linux.sh
42
- printf "y\nn\n" | sudo bash LLVM-11.0.0git-Linux.sh
43
- printf "{\"refreshToken\":\"%s\"}" "${{ secrets.SuperSecret }}" > ~/.cymblconfig
35
+ - name : Read LLVM commit
36
+ id : getversion
37
+ run : echo "::set-output name=version::$(cat src/.git/modules/llvm-project/HEAD)"
44
38
45
39
- name : Cache MLIR
46
40
id : cache-mlir
47
- uses : actions/cache@v2
41
+ uses : actions/cache@v3
48
42
with :
49
43
path : mlir-build
50
- key : ${{ matrix.build }}-${{ matrix.os }}-mlir-${{ hashFiles('src/.git/modules/llvm-project/HEAD') }}
44
+ key : ${{ matrix.build }}-${{ matrix.os }}-mlir-${{ steps.getversion.outputs.version }}
45
+
46
+ - name : add dependencies
47
+ run : sudo apt-get install -y ninja-build # cmake binutils-gold binutils binutils-dev ${{ matrix.compiler }} ${{ matrix.linker-pkg }}
48
+
49
+ # - name: setup cymbl
50
+ # run: |
51
+ # cd /
52
+ # sudo wget --no-verbose https://github.com/cymbl/cymbl.github.io/releases/download/0.0.1/LLVM-11.0.0git-Linux.sh
53
+ # printf "y\nn\n" | sudo bash LLVM-11.0.0git-Linux.sh
54
+ # printf "{\"refreshToken\":\"%s\"}" "${{ secrets.SuperSecret }}" > ~/.cymblconfig
51
55
52
56
- name : MLIR build
53
57
if : steps.cache-mlir.outputs.cache-hit != 'true'
54
58
run : |
55
59
mkdir mlir-build
56
60
cd mlir-build
57
61
CYMBL=OFF cmake ../src/llvm-project/llvm -GNinja -DLLVM_ENABLE_PROJECTS="llvm;clang;mlir;openmp" -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DCMAKE_C_COMPILER=/bin/clang -DCMAKE_CXX_COMPILER=/bin/clang++ -DCMAKE_ASM_COMPILER=/bin/clang -DCMAKE_CXX_FLAGS="-Wno-c++11-narrowing"
58
- cymbld & disown
62
+ # cymbld & disown
59
63
sleep 10
60
64
CYMBL=OFF ninja
61
65
You can’t perform that action at this time.
0 commit comments