-
Notifications
You must be signed in to change notification settings - Fork 31
75 lines (66 loc) · 2.07 KB
/
build.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
name: Build Toolbox
on: [push, pull_request]
jobs:
dependencies:
uses: ./.github/workflows/depends.yml
build:
name: Build Toolbox
needs: dependencies
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- uses: actions/download-artifact@v4
with:
path: "."
- name: Organize Toolbox Dependencies
run: |
ls deps
# assert that the dependencies are present
if [ ! -f "deps/libad9361.dll" ]; then
echo "libad9361-iio DLL not found"
exit 1
fi
if [ ! -f "deps/libad9361.so" ]; then
echo "libad9361-iio SO not found"
exit 1
fi
if [ ! -f "deps/ad9361.h" ]; then
echo "libad9361-iio header not found"
exit 1
fi
make -C ./CI/scripts build
pip3 install -r CI/doc/requirements_doc.txt
make -C CI/doc gen_autodocs html
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v1
with:
release: R2023b
- name: Compile Toolbox
uses: matlab-actions/run-command@v1
with:
command: cd('CI/scripts');genTlbx(1);exit()
- name: Move generated .mltbx file
run: |
mkdir toolbox
cp *.mltbx toolbox
- name: Save generated .mltbx file
uses: actions/upload-artifact@v3
with:
name: TransceiverToolboxInstaller
path: toolbox
- name: Post development build to GH releases page
uses: "marvinpinto/action-automatic-releases@latest"
if: github.ref == 'refs/heads/master'
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Latest Development Build"
files: toolbox