Skip to content

Commit 71a2b1f

Browse files
committed
Fix github action
1 parent f6ae41e commit 71a2b1f

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
build: ["Release"] #, "Debug"] # "RelWithDebInfo"
18-
os: [ubuntu-18.04]
18+
os: [ubuntu-latest]
1919
compiler: [gcc, clang]
2020
cxxcompiler: [g++, clang++]
2121
exclude:
@@ -26,36 +26,40 @@ jobs:
2626

2727
timeout-minutes: 240
2828
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
3330
with:
3431
fetch-depth: 1
3532
path: src
3633
submodules: 'recursive'
3734

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)"
4438

4539
- name: Cache MLIR
4640
id: cache-mlir
47-
uses: actions/cache@v2
41+
uses: actions/cache@v3
4842
with:
4943
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
5155

5256
- name: MLIR build
5357
if: steps.cache-mlir.outputs.cache-hit != 'true'
5458
run: |
5559
mkdir mlir-build
5660
cd mlir-build
5761
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
5963
sleep 10
6064
CYMBL=OFF ninja
6165

0 commit comments

Comments
 (0)