Skip to content

Commit a936b99

Browse files
committed
ci: build debian packages on linux
1 parent c687666 commit a936b99

2 files changed

Lines changed: 30 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,52 @@ jobs:
2020
- name: linux-x64
2121
runner: ubuntu-24.04
2222
platform: linux
23-
artifact: libDelogoHD.so
23+
artifact_name: delogohd-linux-x64
24+
artifact: build/artifacts/*.deb
2425
- name: linux-arm64
2526
runner: ubuntu-24.04-arm
2627
platform: linux
27-
artifact: libDelogoHD.so
28+
artifact_name: delogohd-linux-arm64
29+
artifact: build/artifacts/*.deb
2830
- name: windows-x64
2931
runner: windows-2025-vs2026
3032
platform: windows
3133
generator: Visual Studio 18 2026
3234
arch: x64
33-
artifact: Release/DelogoHD.dll
35+
artifact_name: delogohd-windows-x64
36+
artifact: build/ci/Release/DelogoHD.dll
3437
- name: windows-arm64
3538
runner: windows-11-arm
3639
platform: windows
3740
generator: Visual Studio 17 2022
3841
arch: ARM64
39-
artifact: Release/DelogoHD.dll
42+
artifact_name: delogohd-windows-arm64
43+
artifact: build/ci/Release/DelogoHD.dll
4044

4145
steps:
4246
- name: Checkout
4347
uses: actions/checkout@v6
4448
with:
4549
fetch-depth: 0
4650

47-
- name: Configure Linux
51+
- name: Install Debian build dependencies
4852
if: matrix.platform == 'linux'
49-
run: >
50-
cmake -S . -B build/ci
51-
-DCMAKE_BUILD_TYPE=Release
52-
-DDELOGOHD_BUILD_TEST_TOOLS=OFF
53-
-DDELOGOHD_COPY_RELEASE=OFF
53+
run: |
54+
sudo apt-get update
55+
sudo apt-get install -y --no-install-recommends \
56+
ca-certificates \
57+
cmake \
58+
debhelper \
59+
g++ \
60+
git \
61+
pkgconf
62+
63+
- name: Build Debian package
64+
if: matrix.platform == 'linux'
65+
run: |
66+
dpkg-buildpackage -us -uc -b -j4
67+
mkdir -p build/artifacts
68+
cp ../dualsynth-delogohd_*.deb build/artifacts/
5469
5570
- name: Configure Windows
5671
if: matrix.platform == 'windows'
@@ -63,11 +78,12 @@ jobs:
6378
-DDELOGOHD_COPY_RELEASE=OFF
6479
6580
- name: Build
81+
if: matrix.platform == 'windows'
6682
run: cmake --build build/ci --config Release --parallel 4
6783

6884
- name: Upload plugin
6985
uses: actions/upload-artifact@v7
7086
with:
71-
name: DelogoHD-${{ matrix.name }}
72-
path: build/ci/${{ matrix.artifact }}
87+
name: ${{ matrix.artifact_name }}
88+
path: ${{ matrix.artifact }}
7389
if-no-files-found: error

debian/rules

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ override_dh_auto_configure:
1818
-DDELOGOHD_COPY_RELEASE=OFF \
1919
-DFETCHCONTENT_FULLY_DISCONNECTED=OFF
2020

21+
override_dh_auto_test:
22+
2123
override_dh_auto_install:
2224
dh_auto_install --buildsystem=cmake --builddirectory=$(CMAKE_BUILD_DIR)
2325
install -D -m 0644 $(CMAKE_BUILD_DIR)/$(PLUGIN_NAME) \

0 commit comments

Comments
 (0)