Skip to content

fix: testing env github action path setting eigen #13

fix: testing env github action path setting eigen

fix: testing env github action path setting eigen #13

name: Clara Test Ubuntu
on:
push:
branches:
- main
- development
pull_request:
branches:
- main
- development
jobs:
build-and-testing:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Eigen
run: |
sudo apt-get install libeigen3-dev
sudo cp -r /usr/include/eigen3/Eigen /usr/local/include
- name: Build and test
run: |
echo "check g++ version"
g++ --version
cd clara_test
chmod +x run_test
./run_test
- name: testing grover search
run: |
g++ -pedantic -std=c++11 -Wall -Wextra -Weffc++ -fopenmp -g3 -DDEBUG -isystem $HOME/eigen -I $HOME/clara/include testing/grover_search.cpp -o grover_search
./grover_search
- name: testing channels
run: |
g++ -pedantic -std=c++11 -Wall -Wextra -Weffc++ -fopenmp -g3 -DDEBUG -isystem $HOME/eigen -I $HOME/clara/include testing/channels.cpp -o channels
./channels