Update README.md #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Linux" | |
on: | |
push: | |
branches: | |
- main # Adjust this to your main branch name | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup C++ environment | |
run: | | |
sudo apt update && sudo apt install -y g++ libomp-dev libopenblas-dev libmkl-dev intel-mkl | |
- name: Install Gtest | |
run: | | |
git clone https://github.com/google/googletest.git | |
cd googletest | |
mkdir build | |
cd build | |
cmake .. -DBUILD_GMOCK=OFF | |
make -j | |
sudo make install | |
- name: Git clone TTM repo | |
run: | | |
cd ${GITHUB_WORKSPACE} | |
git clone https://github.com/bassoy/ttm.git | |
- name: Build and run tests (Intel MKL) | |
run: | | |
cd ttm/test | |
make clean && make -j BLAS_FLAG=MKL | |
./bin/main | |
- name: Build and run tests (OpenBLAS) | |
run: | | |
cd ttm/test | |
make clean && make -j BLAS_FLAG=OPENBLAS | |
./bin/main | |
- name: Build and run examples (Intel MKL) | |
run: | | |
cd ttm/example | |
make clean && make -j BLAS_FLAG=MKL | |
./interface1 | |
./interface2 | |
./interface3 |