Skip to content

Commit f213639

Browse files
committed
simplify CI script and drop versions
1 parent 3e9af47 commit f213639

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: [ubuntu-latest]
17-
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11.0-rc.2']
18-
pari-version: ['pari-2.9.4', 'pari-2.9.5', 'pari-2.11.0', 'pari-2.11.0', 'pari-2.11.2', 'pari-2.11.3', 'pari-2.11.4', 'pari-2.13.0', 'pari-2.15.1', 'snapshot']
17+
python-version: ['3.6', '3.10', '3.11']
18+
pari-version: ['pari-2.9.5', 'pari-2.11.4', 'pari-2.13.0', 'pari-2.15.1']
1919
env:
2020
LC_ALL: C
2121
PARI_VERSION: ${{ matrix.pari-version }}
@@ -30,7 +30,7 @@ jobs:
3030
run: |
3131
ccache -M 256M && ccache -s
3232
export PATH="/usr/lib/ccache:$PATH"
33-
bash -x .travis-install-pari.sh
33+
bash -x .install-pari.sh
3434
- name: Local build
3535
run: |
3636
pip install sphinx cython cysignals
Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
# Helper script to install PARI for Travis CI
1+
# Helper script to install PARI for github workflows
22

33
# Exit on error
44
set -e
55

6-
if [ "$PARI_VERSION" = snapshot ]; then
7-
URLDIR=snapshots
8-
fi
9-
106
if [ "$URLDIR" = "" ]; then
117
PURE_VERSION=${PARI_VERSION/pari-}
128
URLDIR=OLD/${PURE_VERSION%.*}
@@ -15,22 +11,13 @@ fi
1511
PARI_URL="http://pari.math.u-bordeaux.fr/pub/pari/$URLDIR"
1612
PARI_URL1="http://pari.math.u-bordeaux.fr/pub/pari/unix"
1713
PARI_URL2="http://pari.math.u-bordeaux.fr/pub/pari/unstable"
18-
PARI_URL3="http://pari.math.u-bordeaux.fr/pub/pari/snapshot"
19-
20-
# Figure out PARI version and download location
21-
# Note that we support giving a list of URLs
22-
if [ "$PARI_VERSION" = snapshot ]; then
23-
# The C=M;O=D request means: sort by date, most recent first.
24-
# Then the first tarball is the one we want.
25-
PARI_VERSION=$(wget -qO- "$PARI_URL/?C=M;O=D" | sed -n 's/.*href="\(pari-.*-g.*\)[.]tar[.]gz".*/\1/; T; p; q')
26-
fi
2714

2815
# Download PARI sources
2916
wget --no-verbose "$PARI_URL/$PARI_VERSION.tar.gz" || wget --no-verbose "$PARI_URL1/$PARI_VERSION.tar.gz" || wget --no-verbose "$PARI_URL2/$PARI_VERSION.tar.gz" || wget --no-verbose "$PARI_URL3/$PARI_VERSION.tar.gz"
3017

3118
# Install
3219
tar xzf "$PARI_VERSION.tar.gz"
3320
cd "$PARI_VERSION"
34-
./Configure --prefix=/usr --datadir=/usr/paridata
21+
./Configure --prefix=/usr
3522
make gp
3623
sudo make install

0 commit comments

Comments
 (0)