|
| 1 | +name: Matrix Tests |
| 2 | + |
| 3 | +on: |
| 4 | + # Every 20th of the month at midnight |
| 5 | + schedule: |
| 6 | + - cron: "0 0 20 * *" |
| 7 | + # Manually triggered |
| 8 | + workflow_dispatch: |
| 9 | + |
| 10 | +jobs: |
| 11 | + matrix-tests: |
| 12 | + runs-on: ubuntu-latest |
| 13 | + env: |
| 14 | + GMP_INCDIR: /usr/include |
| 15 | + GMP_CXX_LINK: "-lm -lgmp -lgmpxx" |
| 16 | + BOOST_INCDIR: "/usr/include" |
| 17 | + BOOST_LINK: "/usr/lib/x86_64-linux-gnu/libboost_serialization.a" |
| 18 | + EIGEN_PATH: /home/runner/work/opt/eigen |
| 19 | + |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v4 |
| 22 | + |
| 23 | + - name: Install standard dependencies |
| 24 | + run: | |
| 25 | + sudo apt-get update |
| 26 | + sudo apt-get install -y build-essential libgmp-dev libeigen3-dev libboost-all-dev |
| 27 | +
|
| 28 | + - name: Install non-standard dependencies |
| 29 | + run: | |
| 30 | + # We need specific version 3.3.9 because of a bug in 3.4.0 for algebraic data types. |
| 31 | + wget -q https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.gz |
| 32 | + tar -xzf eigen-3.3.9.tar.gz |
| 33 | + mv eigen-3.3.9 /home/runner/work/opt/eigen |
| 34 | + pwd |
| 35 | + echo "After eigen-3.3.9 set up" |
| 36 | +
|
| 37 | + - name: Build matrix tests |
| 38 | + run: | |
| 39 | + cd src_matrix |
| 40 | + make Test_MatrixInverse Test_PerformanceHNF Test_HilbertMatrix Test_NullspaceComputation Test_SubspaceCompletion Test_FindIsotropicMod |
| 41 | +
|
| 42 | + - name: Test_MatrixInverse |
| 43 | + run: cd src_matrix && ./Test_MatrixInverse mpz_class 10 |
| 44 | + |
| 45 | + - name: Test_PerformanceHNF |
| 46 | + run: cd src_matrix && ./Test_PerformanceHNF 10 10 |
| 47 | + |
| 48 | + - name: Test_HilbertMatrix |
| 49 | + run: cd src_matrix && ./Test_HilbertMatrix mpq_class 10 |
| 50 | + |
| 51 | + - name: Test_NullspaceComputation |
| 52 | + run: cd src_matrix && ./Test_NullspaceComputation |
| 53 | + |
| 54 | + - name: Test_SubspaceCompletion |
| 55 | + run: cd src_matrix && ./Test_SubspaceCompletion 15 10 |
0 commit comments