-
Notifications
You must be signed in to change notification settings - Fork 4
73 lines (64 loc) · 1.74 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: 'ferret CI'
on:
pull_request:
branches-ignore:
- gh-pages
push:
branches-ignore:
- gh-pages
jobs:
test:
name: GAP ${{ matrix.gap }} ${{ matrix.flags }}
runs-on: ubuntu-latest
strategy:
matrix:
gap:
- 'master'
flags:
- ''
- '--enable-checking'
- '--enable-timing'
- '--enable-checking --enable-timing'
include:
- gap: 'stable-4.13'
flags: ''
- gap: 'stable-4.12'
flags: ''
env:
CONF_FLAG: ${{ matrix.flags }}
BRANCH: ${{ matrix.gap }}
steps:
- uses: actions/checkout@v4
- name: 'Display configuration'
shell: bash
run: |
echo $BRANCH ":" $CONF_FLAG
echo $CXX ":" $CC
- name: 'Install needed apt_packages'
shell: bash
run: |
packages=(
libgmp3-dev
valgrind
)
sudo apt-get update
sudo apt-get install "${packages[@]}"
- name: 'Build GAP and its packages'
shell: bash
run: |
pwd
git clone -b $BRANCH --depth=2 https://github.com/gap-system/gap.git gap
( cd gap && ./autogen.sh || echo no autogen )
( cd gap && ./configure && make && make bootstrap-pkg-full V=1)
( cd gap/pkg && ../bin/BuildPackages.sh io* )
- name: 'Build ferret'
shell: bash
run: |
pwd
echo ln -s $(pwd) gap/pkg/ferret
ln -s $(pwd) gap/pkg/ferret
( cd gap/pkg/ferret && ./autogen.sh && ./configure $CONF_FLAG && make V=1)
- name: 'Run ferret tests'
shell: bash
run: |
(cd gap/pkg/ferret && scripts/quick_test.sh ${MAKEFLAG})