-
Notifications
You must be signed in to change notification settings - Fork 100
84 lines (82 loc) · 2.6 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
79
80
81
82
83
84
name: CI
on: [push, pull_request]
jobs:
ubuntu-build:
name: Ubuntu CI
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: sudo apt-get update -qq && sudo apt-get install -y libao-dev libfftw3-dev librtlsdr-dev python3-pyaudio
- name: Checkout code
uses: actions/checkout@v4
- name: Configure
run: |
mkdir build
cd build
cmake ..
- name: Compile
working-directory: build
run: make -j3
- name: Install
working-directory: build
run: |
sudo make install
sudo ldconfig
- name: Test
run: |
xz -d < support/sample.xz > sample
nrsc5 -r sample -o sample.wav 0 2> sample.log
cat sample.log
grep -q "You're Listening to Q" sample.log
cat sample | nrsc5 -r - -o sample.wav 0 2> sample.log
grep -q "You're Listening to Q" sample.log
support/cli.py -r sample 0
cat sample | support/cli.py -r - 0
- name: Windows cross-compile
run: |
sudo apt-get install -y mingw-w64
support/win-cross-compile 32
support/win-cross-compile 64
macos-build:
name: MacOS CI
strategy:
matrix:
os: [macos-12, macos-13, macos-14]
runs-on: ${{ matrix.os }}
steps:
- name: Install dependencies
run: |
brew install autoconf automake libtool libao fftw librtlsdr portaudio
# pip3 install --global-option=build_ext --global-option="-I/usr/local/include/" --global-option="-L/usr/local/lib" pyaudio
- name: Checkout code
uses: actions/checkout@v4
- name: Configure
run: |
mkdir build
cd build
cmake ..
- name: Compile
working-directory: build
run: make -j3
- name: Install
working-directory: build
run: sudo make install
- name: Test
run: |
xz -d < support/sample.xz > sample
nrsc5 -r sample -o sample.wav 0 2> sample.log
cat sample.log
grep -q "You're Listening to Q" sample.log
cat sample | nrsc5 -r - -o sample.wav 0 2> sample.log
grep -q "You're Listening to Q" sample.log
# support/cli.py -r sample 0
# cat sample | support/cli.py -r - 0
- name: Windows cross-compile
run: |
brew install --cask xquartz wine-stable
brew install mingw-w64
support/win-cross-compile 32
support/win-cross-compile 64