-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (26 loc) · 933 Bytes
/
CI.yml
File metadata and controls
35 lines (26 loc) · 933 Bytes
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
name: Build and Test
on: [push, pull_request]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: ✅ Checkout repository
uses: actions/checkout@v3
- name: 📦 Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y g++ wget unzip
- name: 📥 Download Eigen
run: |
wget https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.zip
unzip eigen-3.4.0.zip
mv eigen-3.4.0 eigen
- name: 📁 Create output directory
run: mkdir -p output_files
- name: ⚙️ Compile main solver
run: |
g++ -o PANKH_solver src/*.cpp -Iinclude -Ieigen -std=c++11
- name: 🧪 Compile and run test
run: |
g++ -o test_exec tests/test.cpp -Iinclude -I/usr/include/eigen3 -std=c++11
./test_exec tests/input.json