-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (63 loc) · 2 KB
/
test.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
name: Test
on:
push: { branches: [ "master" ] }
pull_request: { branches: [ "master" ] }
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test-gmpxxll:
runs-on: ubuntu-22.04
strategy:
matrix:
target:
- check
- check-valgrind
steps:
- uses: actions/checkout@v2
with: { submodules: recursive }
- name: install valgrind and libc debug symbols
run: sudo apt install libc6-dbg valgrind
if: ${{ matrix.target == 'check-valgrind' }}
- uses: conda-incubator/setup-miniconda@v2
with: { miniforge-variant: "Mambaforge", miniforge-version: "latest" }
- name: install dependencies
shell: bash -l {0}
run: |
mamba env update --quiet -n test -f environment.yml
conda list
- name: make ${{ matrix.target }}
shell: bash -l {0}
run: |
./bootstrap
export CXXFLAGS="$CXXFLAGS -UNDEBUG"
./configure --prefix="$PREFIX" --without-benchmark --without-doc
make
make V=1 ${{ matrix.target }}
- name: show logs
run: grep "" /dev/null `find -name '*.log'` || true
if: ${{ always() }}
distcheck:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with: { submodules: recursive }
- uses: conda-incubator/setup-miniconda@v2
with: { miniforge-variant: "Mambaforge", miniforge-version: "latest" }
- name: install dependencies
shell: bash -l {0}
run: |
mamba env update --quiet -n test -f environment.yml
mamba env update --quiet -n test -f doc/environment.yml
conda list
- name: make distcheck
shell: bash -l {0}
run: |
./bootstrap
./configure --prefix="$PREFIX"
EXTRA_STANDARDESE_FLAGS=-I${CONDA_PREFIX}/include make distcheck
- name: show logs
run: grep "" /dev/null `find -name '*.log'` || true
if: ${{ always() }}
env:
MAKEFLAGS: -j2