-
Notifications
You must be signed in to change notification settings - Fork 9
51 lines (51 loc) · 1.4 KB
/
main.yml
File metadata and controls
51 lines (51 loc) · 1.4 KB
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
name: Run Tests, Compile Examples
on: [push, pull_request]
jobs:
examples:
strategy:
matrix:
os: [macos-latest, ubuntu-22.04]
runs-on: ${{ matrix.os }}
steps:
- name: install Ubuntu packages
if: startsWith(matrix.os, 'ubuntu')
run: |
PACKAGES=(
libfftw3-dev
libjack-jackd2-dev
liboctave-dev
libsndfile1-dev
portaudio19-dev
)
sudo apt-get update
sudo apt-get install --no-install-recommends ${PACKAGES[@]}
- name: install macOS packages
if: startsWith(matrix.os, 'macos')
run: |
PACKAGES=(
fftw
jack
libsndfile
octave
portaudio
)
brew install ${PACKAGES[@]}
echo "CPPFLAGS=-I/opt/homebrew/include" >> "$GITHUB_ENV"
echo "LDFLAGS=-L/opt/homebrew/lib" >> "$GITHUB_ENV"
- name: checkout APF source code
uses: actions/checkout@v6
- name: run unit tests
run: |
make -C unit_tests
- name: run performance tests
run: |
make -C performance_tests
- name: compile examples
run: |
make -C examples
- name: compile MEX files
run: |
make -C examples mex
- name: compile MEX files (double precision)
run: |
make -C examples mex-double