Skip to content

Commit

Permalink
update GSL on GitHub Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
C.A.P. Linssen committed Nov 19, 2024
1 parent f0d1594 commit a94a747
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/ode-toolbox-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout ODE-toolbox code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: Install apt dependencies
run: |
Expand Down Expand Up @@ -47,24 +47,26 @@ jobs:

steps:
- name: Checkout ODE-toolbox code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: Install apt dependencies
run: |
sudo apt update
sudo apt install pkg-config python3-all-dev
- name: Install GSL
if: ${{ matrix.with_gsl == '1' }}
run: |
sudo apt remove libgsl27 libgsl-dev # remove system-wide GSL version that is installed by default
cd ..
wget https://mirror.ibcp.fr/pub/gnu/gsl/gsl-latest.tar.gz
tar -xzf gsl-latest.tar.gz
cd gsl-2.*
wget https://mirror.ibcp.fr/pub/gnu/gsl/gsl-2.7.tar.gz # this should be "gsl-latest.tar.gz", but there is an issue with GSL 2.8 (see https://github.com/pygsl/pygsl/issues/62)
tar -xzf gsl-2.7.tar.gz
cd gsl-2.7
./configure && make && sudo make install
- name: Install Python dependencies
Expand Down

0 comments on commit a94a747

Please sign in to comment.