Skip to content

Commit 1788911

Browse files
authored
Update cmake.yml
Download sonivox artifact, and upload drumstick artifact
1 parent 2f90f40 commit 1788911

File tree

1 file changed

+38
-3
lines changed

1 file changed

+38
-3
lines changed

.github/workflows/cmake.yml

+38-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
env:
1414
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
1515
BUILD_TYPE: RelWithDebInfo
16+
SONIVOX_LOCATION: ${{github.workspace}}/SonivoxV3
17+
INSTALL_LOCATION: ${{github.workspace}}/DrumstickV2
1618

1719
jobs:
1820
build:
@@ -22,7 +24,17 @@ jobs:
2224
runs-on: ubuntu-latest
2325

2426
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
2638

2739
- name: Install Qt
2840
uses: jurplel/install-qt-action@v3
@@ -31,12 +43,19 @@ jobs:
3143
modules: qt5compat
3244

3345
- 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
3547

3648
- name: Configure CMake
3749
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
3850
# 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
4059

4160
- name: Build
4261
# Build your program with the given configuration
@@ -47,3 +66,19 @@ jobs:
4766
# Execute tests defined by the CMake configuration.
4867
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
4968
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

Comments
 (0)