-
Notifications
You must be signed in to change notification settings - Fork 71
68 lines (55 loc) · 2.18 KB
/
compatibility_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
name: Compatibility build
#on: workflow_dispatch
on:
push:
branches:
- master
env:
BUILD_TYPE: Release
jobs:
compat:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Install Deps
run: |
sudo apt-get update
# See PR 1077. Required to find libatomic for some archs.
sudo apt-get install -y libsndfile1-dev libsamplerate0-dev \
libjack-jackd2-dev ladspa-sdk liblo-dev dssi-dev \
libsamplerate0-dev libfluidsynth-dev libgtkmm-2.4-dev \
libinstpatch-dev librubberband-dev python3-dev librtaudio-dev \
liblilv-dev lv2-dev liblrdf0-dev
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '5.9.5'
# - name: Check Qt Installation
# run: |
# QT_BASE_DIR=/usr
# export QTDIR=$QT_BASE_DIR
# export PATH=$QT_BASE_DIR/bin:$PATH
# export LD_LIBRARY_PATH=$QT_BASE_DIR/lib/x86_64-linux-gnu:$QT_BASE_DIR/lib:$LD_LIBRARY_PATH
# export PKG_CONFIG_PATH=$QT_BASE_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
# echo "$PATH" >> $GITHUB_PATH
# echo "QT_BASE_DIR=$QT_BASE_DIR" >> $GITHUB_ENV
# echo "QTDIR=$QT_BASE_DIR" >> $GITHUB_ENV
# echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV
# echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" >> $GITHUB_ENV
# echo $PKG_CONFIG_PATH
# pkg-config --variable pc_path pkg-config
# ls /usr/lib/x86_64-linux-gnu/pkgconfig
- name: Create Build Environment
run:
sudo apt-get install -y cmake extra-cmake-modules
cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
working-directory: ${{runner.workspace}}/build
run: |
REPO_PATH=$GITHUB_WORKSPACE/src
export CMAKE_PREFIX_PATH=$GITHUB_WORKSPACE/undefined/Qt/5.9.5/gcc_64/lib/cmake/
cmake $REPO_PATH -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_SHARED_LINKER_FLAGS=-Wl,--no-undefined -DMODULES_BUILD_STATIC=ON
- name: Build
working-directory: ${{runner.workspace}}/build
run:
cmake --build . --config $BUILD_TYPE -j3