Skip to content
Snippets Groups Projects
Commit 7fbe7185 authored by Cameron Ball's avatar Cameron Ball
Browse files

Allow GCL or SBCL Maxima to be used when installing Maxima in GHA

parent 1320ab30
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ on: [push, pull_request] ...@@ -4,7 +4,7 @@ on: [push, pull_request]
jobs: jobs:
test: test:
runs-on: ubuntu-18.04 runs-on: ubuntu-22.04
services: services:
postgres: postgres:
...@@ -30,31 +30,43 @@ jobs: ...@@ -30,31 +30,43 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: # I don't know why, but mariadb is much slower, so mostly use pgsql. matrix: # I don't know why, but mariadb is much slower, so mostly use pgsql.
# We use a mix of SBCL and GCL, but mostly prefer SBCL as it is faster.
include: include:
- php: '8.0' - php: '8.0'
moodle-branch: 'master' moodle-branch: 'master'
database: 'pgsql' database: 'pgsql'
maxima: 'SBCL'
- php: '7.4' - php: '7.4'
moodle-branch: 'MOODLE_401_STABLE' moodle-branch: 'MOODLE_401_STABLE'
database: 'pgsql' database: 'pgsql'
maxima: 'SBCL'
- php: '7.4' - php: '7.4'
moodle-branch: 'MOODLE_400_STABLE' moodle-branch: 'MOODLE_400_STABLE'
database: 'pgsql' database: 'pgsql'
maxima: 'GCL'
- php: '7.3' - php: '7.3'
moodle-branch: 'MOODLE_311_STABLE' moodle-branch: 'MOODLE_311_STABLE'
database: 'pgsql' database: 'pgsql'
maxima: 'SBCL'
- php: '7.3' - php: '7.3'
moodle-branch: 'MOODLE_310_STABLE' moodle-branch: 'MOODLE_310_STABLE'
database: 'pgsql' database: 'pgsql'
maxima: 'SBCL'
- php: '7.2' - php: '7.2'
moodle-branch: 'MOODLE_39_STABLE' moodle-branch: 'MOODLE_39_STABLE'
database: 'mariadb' database: 'mariadb'
maxima: 'SBCL'
steps: steps:
- name: Install required libraries - name: Install Maxima (${{ matrix.maxima }})
run: | run: |
sudo apt-get install gnuplot maxima maxima-share texinfo maxima="${{ (matrix.maxima == 'SBCL' && 'sbcl') || 'gcl' }}"
maxima --list-avail wget http://mirrors.kernel.org/ubuntu/pool/main/r/readline/libreadline7_7.0-3_amd64.deb \
https://sourceforge.net/projects/maxima/files/Maxima-Linux/5.42.2-Linux/maxima-common_5.42.2-1_all.deb \
https://sourceforge.net/projects/maxima/files/Maxima-Linux/5.42.2-Linux/maxima-${maxima}_5.42.2-1_amd64.deb
sudo apt-get install libtinfo5
sudo dpkg -i libreadline7_7.0-3_amd64.deb maxima-common_5.42.2-1_all.deb maxima-${maxima}_5.42.2-1_amd64.deb
echo "diff(x^2,x);" | maxima echo "diff(x^2,x);" | maxima
echo "build_info();" | maxima echo "build_info();" | maxima
...@@ -87,11 +99,11 @@ jobs: ...@@ -87,11 +99,11 @@ jobs:
moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1 moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMAVERSION", "5.41.0");' moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMAVERSION", "5.42.2");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMACOMMAND", "maxima");' moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMACOMMAND", "maxima");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMACOMMANDOPT", "timeout --kill-after=10s 10s ${{ github.workspace }}/maxima_opt_auto -eval '\''(cl-user::run)'\''");' moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMACOMMANDOPT", "timeout --kill-after=10s 10s ${{ github.workspace }}/maxima_opt_auto -eval '\''(cl-user::run)'\''");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMACOMMANDSERVER", "http://pool.home:8080/MaximaPool/MaximaPool");' moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMACOMMANDSERVER", "http://pool.home:8080/MaximaPool/MaximaPool");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_CASTIMEOUT", "10");' moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_CASTIMEOUT", "100");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMALIBRARIES", "stats, distrib, descriptive, simplex");' moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_MAXIMALIBRARIES", "stats, distrib, descriptive, simplex");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_CASPREPARSE", "true");' moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_CASPREPARSE", "true");'
moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_PLATFORM", "linux-optimised");' moodle-plugin-ci add-config 'define("QTYPE_STACK_TEST_CONFIG_PLATFORM", "linux-optimised");'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment