Skip to content

Commit 6751bdd

Browse files
committed
Merge branch 'main' of github.com:coding4Acause/PANKH into main
Merge branch 'main' of github.com:coding4Acause/PANKH into main
2 parents aa31f4c + 83f49a1 commit 6751bdd

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

.github/workflows/CI.yml

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Build and Test
22

33
on: [push, pull_request]
44

@@ -7,23 +7,29 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- name: Checkout repository
11-
uses: actions/checkout@v3
12-
13-
- name: Install dependencies (Intel oneAPI or use g++)
14-
run: |
15-
sudo apt update
16-
sudo apt install -y g++
17-
18-
- name: Compile the main solver
19-
run: |
20-
mkdir -p output_files
21-
g++ -o PANKH_solver src/*.cpp -Iinclude -std=c++11
22-
23-
- name: Compile the test
24-
run: |
25-
g++ -o tests/test tests/test.cpp -std=c++11
26-
27-
- name: Run the test
28-
run: |
29-
./tests/test
10+
- name: ✅ Checkout repository
11+
uses: actions/checkout@v3
12+
13+
- name: 📦 Install dependencies
14+
run: |
15+
sudo apt-get update
16+
sudo apt-get install -y g++ wget unzip
17+
18+
- name: 📥 Download Eigen
19+
run: |
20+
wget https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.zip
21+
unzip eigen-3.4.0.zip
22+
mv eigen-3.4.0 eigen
23+
24+
- name: 📁 Create output directory
25+
run: mkdir -p output_files
26+
27+
- name: ⚙️ Compile main solver
28+
run: |
29+
g++ -o PANKH_solver src/*.cpp -Iinclude -Ieigen -std=c++11
30+
31+
- name: 🧪 Compile and run test
32+
run: |
33+
g++ -o test_exec tests/test.cpp -Iinclude -I/usr/include/eigen3 -std=c++11
34+
./test_exec
35+

0 commit comments

Comments
 (0)