Skip to content

Commit fd0af01

Browse files
committed
Update CI workflow to build fooyin alongside plugin
We should add a dedicated SDK repo to make building plugins easier, but this will do for now
1 parent d757825 commit fd0af01

1 file changed

Lines changed: 45 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,67 @@ permissions:
1212

1313
jobs:
1414
build:
15-
name: Build against fooyin
15+
name: Build fooyin and plugin
1616
runs-on: ubuntu-latest
1717
container: archlinux:latest
1818

19+
env:
20+
FOOYIN_REF: master
21+
FOOYIN_PREFIX: ${{ github.workspace }}/fooyin-install
22+
1923
steps:
2024
- name: Dependencies
2125
run: |
2226
pacman -Syu --noconfirm --needed \
27+
alsa-lib \
2328
base-devel \
2429
cmake \
30+
ffmpeg \
2531
git \
32+
icu \
2633
ninja \
27-
fooyin
34+
qt6-base \
35+
qt6-svg \
36+
qt6-tools \
37+
taglib \
38+
zlib
2839
29-
- name: Checkout
30-
uses: actions/checkout@v6
40+
- name: Checkout plugin
41+
uses: actions/checkout@v7
3142
with:
3243
submodules: recursive
3344

34-
- name: Configure
35-
run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
45+
- name: Checkout fooyin
46+
uses: actions/checkout@v7
47+
with:
48+
repository: fooyin/fooyin
49+
ref: ${{ env.FOOYIN_REF }}
50+
path: fooyin
51+
submodules: recursive
52+
53+
- name: Configure fooyin
54+
run: |
55+
cmake -S fooyin -B fooyin-build -G Ninja \
56+
-DCMAKE_BUILD_TYPE=Release \
57+
-DCMAKE_INSTALL_PREFIX="$FOOYIN_PREFIX" \
58+
-DBUILD_PCH=ON \
59+
-DBUILD_TRANSLATIONS=OFF \
60+
-DINSTALL_HEADERS=ON \
61+
-DPLUGIN_SELECTION=none
62+
63+
- name: Build fooyin
64+
run: cmake --build fooyin-build
65+
66+
- name: Install fooyin
67+
run: cmake --install fooyin-build
68+
69+
- name: Configure plugin
70+
run: |
71+
cmake -S . -B build -G Ninja \
72+
-DCMAKE_BUILD_TYPE=Release \
73+
-DCMAKE_PREFIX_PATH="$FOOYIN_PREFIX"
3674
37-
- name: Build
75+
- name: Build plugin
3876
run: cmake --build build
3977

4078
- name: Upload artifact

0 commit comments

Comments
 (0)