-
Notifications
You must be signed in to change notification settings - Fork 80
93 lines (77 loc) · 1.63 KB
/
C++.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: C++ Build
on:
push:
branches:
- master
tags:
- v*
pull_request:
branches:
- master
jobs:
Linux:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux_2_28_x86_64:latest
steps:
- uses: actions/checkout@v4
- name: Install fftw
run: |
yum install -y fftw3-devel
- name: Compile C++ code
run: |
make spreadtestall
make lib
make test
MacOS_clang:
runs-on: macos-13
env:
MACOSX_DEPLOYMENT_TARGET: 10.15
steps:
- uses: actions/checkout@v4
- name: Install omp and fftw
run: |
brew install libomp fftw
cp make.inc.macosx_clang make.inc
- name: Compile C++ code
run: |
make spreadtestall
make lib
make test
MacOS_gcc:
runs-on: macos-13
env:
MACOSX_DEPLOYMENT_TARGET: 10.15
steps:
- uses: actions/checkout@v4
- name: Install gcc and fftw
run: |
brew install gcc@12 fftw
cp make.inc.macosx_gcc-12 make.inc
- name: Compile C++ code
run: |
make spreadtestall
make lib
make test
Windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- name: 'Setup MSYS2'
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: false
install: >-
git
make
diffutils
pacboy: >-
toolchain:p
fftw:p
- name: Compile C++ code
run: |
cp make.inc.windows_msys make.inc
make spreadtestall && make lib && make test