-
Notifications
You must be signed in to change notification settings - Fork 39
48 lines (43 loc) · 1.09 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Tests
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- '**.cpp'
- '**.h'
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Install libzstd-dev
run: sudo apt-get install libzstd-dev
- name: Install LIT and Filecheck
run: |
sudo python3 -m pip install lit
sudo python3 -m pip install filecheck
- name: Install LLVM-17
run: |
wget https://apt.llvm.org/llvm.sh
sudo bash llvm.sh 17
- uses: actions/checkout@v2
- name: Eigen-setup
run: |
mkdir build && cd build
wget https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.gz
tar -xvzf eigen-3.3.7.tar.gz
- name: Build-Eigen
run: |
cd build
mkdir eigen-build
cd eigen-build
cmake ../eigen-3.3.7
make -j4 && cd ..
- name: cmake
run: cd build && cmake -DEigen3_DIR=./eigen-build ..
- name: make
run: cd build && make -j8
- name: Run-tests
run: cd build && ulimit -s unlimited && make check_ir2vec