-
Notifications
You must be signed in to change notification settings - Fork 8
78 lines (78 loc) · 2.33 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
74
75
76
77
78
name: CI
on:
- push
- pull_request
jobs:
test:
name: C - ${{ matrix.os }} - ${{ matrix.compiler }} - ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macOS-13
compiler:
- gcc
- clang
arch:
- x86
- x64
- aarch64
exclude:
- os: macOS-13
arch: x86
- os: macOS-13
arch: aarch64
fail-fast: false
env:
CC: ${{ matrix.compiler }}
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:.
steps:
- uses: actions/checkout@v4
- name: Install dependencies on ubuntu gcc
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.compiler, 'gcc')
run: |
sudo apt-get update
sudo apt-get install libomp-11-dev libblas-dev libopenblas-base libfftw3-dev libmpfr-dev
- name: Install dependencies on ubuntu clang
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.compiler, 'clang')
run: |
sudo apt-get update
sudo apt-get install libomp-14-dev libblas-dev libopenblas-base libfftw3-dev libmpfr-dev
- name: Install dependencies on macOS
if: startsWith(matrix.os, 'macOS')
run: |
brew update
brew install libomp openblas fftw mpfr
- name: Compiler version
run: ${CC} --version
- name: Configure environment for quadmath
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.compiler, 'gcc')
run: echo "FT_QUADMATH=1" >> $GITHUB_ENV
- name: Build assembly
run: make assembly
- name: Build library
run: make lib
- name: Build tests
run: make tests
- name: Build examples
run: make examples
- name: Run tests
run: make runtests FT_NUM_THREADS=2
- name: Run examples
run: make runexamples
docs:
name: Documentation
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
- name: Install Doxygen
run: brew install doxygen
- name: Build site
run: doxygen Doxyfile
- if: ${{ github.ref == 'refs/heads/master' }}
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/html
force_orphan: true