File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+
2+
3+ ` ` ` yaml
4+ name: PANKH CI
5+
6+ on:
7+ push:
8+ branches: [ main ]
9+ pull_request:
10+ branches: [ main ]
11+
12+ jobs:
13+ build-and-test:
14+ runs-on: ubuntu-latest
15+
16+ steps:
17+ - name: Checkout code
18+ uses: actions/checkout@v4
19+
20+ - name: Install dependencies
21+ run: |
22+ sudo apt-get update
23+ sudo apt-get install -y g++ libeigen3-dev gnuplot
24+ wget https://github.com/nlohmann/json/releases/download/v3.11.3/json.hpp -O include/json.hpp
25+
26+ - name: Download Catch2
27+ run: |
28+ wget https://github.com/catchorg/Catch2/releases/download/v3.4.0/catch.hpp -O include/catch.hpp
29+
30+ - name: Compile and run tests
31+ run: |
32+ g++ -std=c++17 -Iinclude -I/usr/include/eigen3 tests/test_geometry.cpp src/geometry.cpp src/VectorOperations.cpp -o tests/test_geometry
33+ g++ -std=c++17 -Iinclude -I/usr/include/eigen3 tests/test_kinematics.cpp src/kinematics.cpp src/MotionParameters.cpp src/VectorOperations.cpp src/constants.cpp -o tests/test_kinematics
34+ g++ -std=c++17 -Iinclude -I/usr/include/eigen3 tests/test_velocity.cpp src/velocity.cpp src/VectorOperations.cpp src/MotionParameters.cpp src/constants.cpp -o tests/test_velocity
35+ g++ -std=c++17 -Iinclude -I/usr/include/eigen3 tests/test_influencematrix.cpp src/InfluenceMatrix.cpp src/VectorOperations.cpp src/geometry.cpp -o tests/test_influencematrix
36+ g++ -std=c++17 -Iinclude -I/usr/include/eigen3 tests/test_newtonraphson.cpp src/NewtonRaphsonNonLinear.cpp src/VectorOperations.cpp src/geometry.cpp src/velocity.cpp src/MotionParameters.cpp src/constants.cpp -o tests/test_newtonraphson
37+ ./tests/test_geometry
38+ ./tests/test_kinematics
39+ ./tests/test_velocity
40+ ./tests/test_influencematrix
41+ ./tests/test_newtonraphson
42+ ` ` `
43+
You can’t perform that action at this time.
0 commit comments