-
Notifications
You must be signed in to change notification settings - Fork 4
67 lines (57 loc) · 1.73 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
name: 'ferret CI'
on:
pull_request:
branches-ignore:
- gh-pages
push:
branches-ignore:
- gh-pages
# the `concurrency` settings ensure that not too many CI jobs run in parallel
concurrency:
# group by workflow and ref; the last slightly strange component ensures that for pull
# requests, we limit to 1 concurrent job, but for the master branch we don't
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }}
# Cancel intermediate builds, but only if it is a pull request build.
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
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: ''
steps:
- uses: actions/checkout@v4
- 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'
uses: gap-actions/setup-gap@v2
with:
GAPBRANCH: ${{ matrix.gap }}
- name: 'Build ferret'
uses: gap-actions/build-pkg@v1
with:
CONFIGFLAGS: ${{ matrix.flags }}
- name: 'Run ferret GAP tests'
uses: gap-actions/run-pkg-tests@v2
- name: 'Run additional tests'
shell: bash
run: scripts/quick_test.sh