13
13
env :
14
14
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
15
15
BUILD_TYPE : RelWithDebInfo
16
+ SONIVOX_LOCATION : ${{github.workspace}}/SonivoxV3
17
+ INSTALL_LOCATION : ${{github.workspace}}/DrumstickV2
16
18
17
19
jobs :
18
20
build :
22
24
runs-on : ubuntu-latest
23
25
24
26
steps :
25
- - uses : actions/checkout@v3
27
+ - uses : actions/checkout@v4
28
+
29
+ - uses : dawidd6/action-download-artifact@v3
30
+ with :
31
+ name : SonivoxV3
32
+ github_token : ${{secrets.GH_PAT}}
33
+ repo : pedrolcl/sonivox
34
+ workflow : cmake.yml
35
+
36
+ - name : Extract downloaded files
37
+ run : tar xvf SonivoxV3.tar
26
38
27
39
- name : Install Qt
28
40
uses : jurplel/install-qt-action@v3
@@ -31,12 +43,19 @@ jobs:
31
43
modules : qt5compat
32
44
33
45
- name : Dependencies
34
- run : sudo apt-get update && sudo apt-get install -yq pkg-config libasound2-dev libpulse-dev libfluidsynth-dev # libsonivox-dev
46
+ run : sudo apt-get update && sudo apt-get install -yq pkg-config libasound2-dev libpulse-dev libfluidsynth-dev
35
47
36
48
- name : Configure CMake
37
49
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
38
50
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
39
- run : cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DUSE_SONIVOX=OFF -DUSE_PULSEAUDIO=OFF -DBUILD_DOCS=OFF
51
+ run : cmake -B ${{github.workspace}}/build \
52
+ -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
53
+ -DCMAKE_PREFIX_PATH=${{env.SONIVOX_LOCATION}} \
54
+ -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} \
55
+ -DUSE_SONIVOX=ON \
56
+ -DUSE_PULSEAUDIO=ON \
57
+ -DBUILD_DOCS=OFF \
58
+ -BUILD_UTILS=OFF
40
59
41
60
- name : Build
42
61
# Build your program with the given configuration
47
66
# Execute tests defined by the CMake configuration.
48
67
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
49
68
run : ctest -C ${{env.BUILD_TYPE}} --output-on-failure -R "^(alsa|file|widgets)"
69
+
70
+ - name : Install
71
+ run : cmake --install ${{github.workspace}}/build
72
+
73
+ - name : Create Archive
74
+ run : |
75
+ cd ${{github.workspace}}
76
+ tar cvf DrumstickV2.tar DrumstickV2
77
+
78
+ - name : Upload Artifacts
79
+ uses : actions/upload-artifact@v4
80
+ with :
81
+ name : DrumstickV2
82
+ path : DrumstickV2.tar
83
+ retention-days : 90
84
+ overwrite : true
0 commit comments