-
Notifications
You must be signed in to change notification settings - Fork 93
209 lines (167 loc) · 7.03 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
name: CI
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
workflow_dispatch:
inputs:
debug_enabled:
description: 'Build and run interactive shell'
required: false
default: false
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
# Installation of dependencies is too OS-dependent now, we don't
# miss that much by particularizing this in a per-OS basis.
build-linux-appimage:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup interactive shell session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
- name: Install dependencies
uses: "./.github/actions/linuxdeps"
- name: Build & Distribute (SigDigger)
run: |
cd Scripts
chmod a+x dist-appimage.sh
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":"$PWD"/deploy-root/lib
SIGDIGGER_EMBED_SOAPYSDR=1 BUILDTYPE=Debug ./dist-appimage.sh
cd ..
- name: Archive AppImage files
uses: actions/upload-artifact@v2
with:
name: linux-latest-appimage
path: Scripts/*.AppImage
build-macos:
runs-on: macos-11
steps:
- uses: actions/setup-python@v3
with:
python-version: '3.9' # Version range or exact version of a Python version to use, using SemVer's version range syntax
- uses: actions/checkout@v2
- name: Setup interactive shell session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: 5.14.2
setup-python: false
py7zrversion: '==0.18.1'
- name: Install sndfile
run: brew install libsndfile
- name: Install Volk
run: brew install volk
- name: Install cURL
run: brew install curl
- name: Install FFTW3
run: brew install fftw
- name: Adding SoapySDR taps (Pothos)
run: brew tap pothosware/homebrew-pothos && brew update
- name: Install SoapySDR (Pothos)
run: brew install pothossoapy
- name: Fix brew/SoapySDR linking disaster
run: |
rm -f /usr/local/lib/libSoapySDR.0.8.dylib
ln -s /usr/local/lib/libSoapySDR.0.8.1.dylib /usr/local/lib/libSoapySDR.0.8.dylib
- name: Creating modules0.8
run: sudo mkdir -p /usr/local/lib/SoapySDR/modules0.8
# - name: Install SDRPlay API
# run: wget https://www.sdrplay.com/software/SDRplay_RSP_API-MacOSX-3.07.3.pkg && sudo installer -pkg SDRplay_RSP_API-MacOSX-3.07.3.pkg -target /
# - name: Build and install SoapySDR module for SDRPlay
# run: git clone https://github.com/pothosware/SoapySDRPlay3 && cd SoapySDRPlay3 && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j3 && sudo make install && cd ../../
# soapyosmo removed because of random compilation errors
# soapyuhd removed for the same reason
# soapyaudio removed as it keeps breaking
# soapyremote removed because it crashes for whatever reason
# SDRPlay support removed becuase it hangs SoapySDR on startup
- name: Install SoapySDR modules (Pothos)
run: |
sudo chmod -R a+rw /usr/local/lib/SoapySDR/modules0.8
brew install soapyrtlsdr soapyhackrf soapybladerf soapyairspy soapyairspyhf soapyredpitaya soapyiris limesuite soapyplutosdr
- name: Remove SoapySDR remote module to prevent crashes
run: sudo rm /usr/local/lib/SoapySDR/modules0.8/libremote*
- name: Install libxml2
run: brew install libxml2
- name: Install portaudio
run: brew install portaudio
- name: Build & Distribute (SigDigger)
run: |
cd Scripts
chmod a+x dist-dmg.sh
SIGDIGGER_EMBED_SOAPYSDR=1 BUILDTYPE=Debug ./dist-dmg.sh
cd ..
- name: Archive .DMG files
uses: actions/upload-artifact@v2
with:
name: macos-latest-dmg
path: Scripts/*.dmg
# Windows
build-windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: git mingw-w64-x86_64-cc mingw-w64-x86_64-make mingw-w64-x86_64-cmake mingw-w64-x86_64-libsndfile mingw-w64-x86_64-fftw mingw-w64-x86_64-volk mingw-w64-x86_64-libxml2 mingw-w64-x86_64-libusb mingw-w64-x86_64-qt5 mingw-w64-x86_64-portaudio zip
# SoapySDR
- name: Checkout (SoapySDR)
uses: actions/checkout@v2
with:
repository: pothosware/SoapySDR
ref: refs/heads/master
path: SoapySDR
- name: Configure (SoapySDR)
run: /mingw64/bin/cmake -G"MinGW Makefiles" -B SoapySDR/build -DCMAKE_INSTALL_PREFIX:PATH=/mingw64/ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} SoapySDR/
- name: Build (SoapySDR)
run: /mingw64/bin/cmake --build SoapySDR/build --config ${{env.BUILD_TYPE}}
- name: Install (SoapySDR)
run: /mingw64/bin/cmake --build SoapySDR/build --config ${{env.BUILD_TYPE}} --target install
# BatchDrake's fixed rtl-sdr-blog
- name: Checkout (rtl-sdr-blog from BatchDrake)
uses: actions/checkout@v2
with:
repository: BatchDrake/rtl-sdr-blog
ref: refs/heads/feature/xfer-completion
path: rtl-sdr-blog
- name: Configure (rtl-sdr-blog)
run: /mingw64/bin/cmake -G"MinGW Makefiles" -B rtl-sdr-blog/build -DCMAKE_INSTALL_PREFIX:PATH=/mingw64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} rtl-sdr-blog
- name: Build (rtl-sdr-blog)
run: /mingw64/bin/cmake --build rtl-sdr-blog/build --config ${{env.BUILD_TYPE}}
- name: Install (rtl-sdr-blog)
run: /mingw64/bin/cmake --build rtl-sdr-blog/build --config ${{env.BUILD_TYPE}} --target install
# SoapyRTLSDR
- name: Checkout (SoapyRTLSDR)
uses: actions/checkout@v2
with:
repository: pothosware/SoapyRTLSDR
ref: refs/heads/master
path: SoapyRTLSDR
- name: Configure (SoapyRTLSDR)
run: /mingw64/bin/cmake -G"MinGW Makefiles" -B SoapyRTLSDR/build -DCMAKE_INSTALL_PREFIX:PATH=/mingw64/ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} SoapyRTLSDR
- name: Build (SoapyRTLSDR)
run: /mingw64/bin/cmake --build SoapyRTLSDR/build --config ${{env.BUILD_TYPE}}
- name: Install (SoapyRTLSDR)
run: /mingw64/bin/cmake --build SoapyRTLSDR/build --config ${{env.BUILD_TYPE}} --target install
# SigDigger
- name: Build & Distribute (SigDigger)
run: |
cd Scripts
chmod a+x dist-mingw32.sh
BUILDTYPE=Debug ./dist-mingw32.sh
cd ..
- name: Archive .ZIP files
uses: actions/upload-artifact@v2
with:
name: windows-latest-zip
path: Scripts/SigDigger-*.zip