Skip to content

Merge pull request #114 from IITH-Compilers/license-change #41

Merge pull request #114 from IITH-Compilers/license-change

Merge pull request #114 from IITH-Compilers/license-change #41

Workflow file for this run

name: Publish
on:
workflow_dispatch:
branches: [ main ]
push:
branches: [ main ]
paths:
- '**.cpp'
- '**.h'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Install libzstd-dev
run: sudo apt-get install -y 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
- uses: actions/upload-artifact@v2
with:
name: ir2vec
path: |
build/bin
build/lib