-
Notifications
You must be signed in to change notification settings - Fork 2
151 lines (134 loc) · 4.4 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
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
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-24.04
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
libfreetype-dev
freeglut3-dev
libxmu-dev
flex
bison
cmake
ccache
portaudio19-dev
libsndfile1-dev
libfftw3-dev
alsa-utils
libasound2-dev
octave-dev
libboost-dev
libeigen3-dev
libopencv-dev
python3-opencv
libpcap-dev
ninja-build
yasm
libsdl2-dev
libsqlite3-dev
libgtkmm-3.0-dev
libpango1.0-dev
libgtkmm-3.0-dev
libpango1.0-dev
libcairo2-dev
libxkbcommon-x11-dev
libxcb-keysyms1-dev
libxcb-cursor-dev
libxcb-util-dev
libsndio-dev
libx264-dev
libx265-dev
- name: Install Aqt
run: pip install aqtinstall
- name: Configure ccache
run: |
ccache --set-config max_size=9000M
mkdir -p ~/.ccache
- name: Setup cache
uses: actions/cache@v2
with:
path: ~/.ccache
key: ccache-${{ runner.os }}
- 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_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-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 \
-DJVX_USE_CBMP=TRUE \
-DJVX_USE_OPENGL=TRUE \
-DJVX_USE_OPENCV=TRUE \
-DJVX_USE_FFMPEG=TRUE \
-DJVX_USE_GLEW_GLUT=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}}
- name: Display ccache stats
run: ccache -s