-
Notifications
You must be signed in to change notification settings - Fork 2
116 lines (102 loc) · 3.53 KB
/
cmake.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
name: CMake
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Update Packages
run: sudo apt update
- name: Upgrade Packages
run: sudo apt full-upgrade
- name: Install dependecies
run: sudo apt install -y build-essential
libgl1-mesa-dev
libglew-dev
libsdl2-dev
libsdl2-image-dev
libglm-dev
libfreetype6-dev
freeglut3-dev
libxmu-dev
flex
bison
cmake
portaudio19-dev
libsndfile1-dev
libfftw3-3
libfftw3-dev
alsa-utils
libasound2-dev
octave
liboctave-dev
libboost-dev
libeigen3-dev
libopencv-dev
python3-opencv
libpcap-dev
ninja-build
- name: Install Aqt
run: pip install aqtinstall
- name: Configure buildtools
run: |
cmake -B ${{github.workspace}}/build \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DJVX_COMPILE_BUILDTOOLS=TRUE \
-DCMAKE_INSTALL_PREFIX=release \
-G Ninja
- name: Build buildtools
# Build builttools with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Install buildtools
# Install builttools with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target install
- name: Cleanup build directory
run: rm -r ${{github.workspace}}/build/CMakeFiles ${{github.workspace}}/build/CMakeCache.txt
- name: Configure AudYoFlo
run: |
cmake -B ${{github.workspace}}/build \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DCMAKE_INSTALL_PREFIX=release \
-G Ninja \
-DJVX_PRODUCT=audio \
-DJVX_DEFINE_NUMBER_32BIT_TOKENS_BITFIELD=16 \
-DJVX_DEPLOY_UNSTABLE=TRUE\
-DJVX_USE_PART_ALSA=TRUE\
-DJVX_USE_PART_PAUDIO=TRUE\
-DJVX_USE_PART_RS232=TRUE \
-DJVX_USE_QT=TRUE \
-DJVX_USE_QWT=TRUE \
-DJVX_USE_QWT_POLAR=TRUE \
-DJVX_USE_PART_CORECONTROL=TRUE \
-DJVX_USE_CONSOLE_APPS=TRUE \
-DJVX_USE_PART_MATLAB=FALSE \
-DJVX_COMPILE_GOD_HOST=TRUE \
-DJVX_MATLAB_PROPERTY_GENERATOR=TRUE \
-DJVX_USE_PART_WEBSERVER=TRUE \
-DJVX_DEPLOY_EXAMPLES=TRUE \
-DJVX_USE_BOOST=TRUE \
-DJVX_USE_EIGEN=TRUE \
-DJVX_DEPLOY_LIBRARY_DSP_MATLAB=FALSE \
-DJVX_INCLUDE_EBUR128=TRUE \
-DJVX_USE_VST=FALSE \
-DSMTG_CREATE_PLUGIN_LINK=FALSE \
-DJVX_USE_PART_MPG123=FALSE \
-DJVX_USE_LIBMYSOFA=TRUE \
-DLIBMYSOFA_BUILD_TESTS=FALSE \
-DJVX_USE_HOA_CIRC_ARRAY=FALSE \
-DJVX_SYSTEM_USE_DATA_FORMAT_FLOAT=FALSE
- name: Build AudYoFlo
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}