-
Notifications
You must be signed in to change notification settings - Fork 9
123 lines (111 loc) · 3.68 KB
/
Copy pathci.yml
File metadata and controls
123 lines (111 loc) · 3.68 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
name: CI
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runner }}
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
include:
- name: linux-ubuntu24.04-x64
runner: ubuntu-24.04
platform: linux
artifact_name: delogohd-linux-ubuntu24.04-x64
artifact: build/artifacts/*.deb
- name: linux-ubuntu24.04-arm64
runner: ubuntu-24.04-arm
platform: linux
artifact_name: delogohd-linux-ubuntu24.04-arm64
artifact: build/artifacts/*.deb
- name: linux-ubuntu26.04-x64
runner: ubuntu-26.04
platform: linux
artifact_name: delogohd-linux-ubuntu26.04-x64
artifact: build/artifacts/*.deb
- name: linux-ubuntu26.04-arm64
runner: ubuntu-26.04-arm
platform: linux
artifact_name: delogohd-linux-ubuntu26.04-arm64
artifact: build/artifacts/*.deb
- name: windows-x64
runner: windows-2025-vs2026
platform: windows
generator: Visual Studio 18 2026
arch: x64
artifact_name: delogohd-windows-x64
artifact: build/ci/Release/DelogoHD.dll
- name: windows-arm64
runner: windows-11-vs2026-arm
platform: windows
generator: Visual Studio 18 2026
arch: ARM64
artifact_name: delogohd-windows-arm64
artifact: build/ci/Release/DelogoHD.dll
- name: macos-26-arm64
runner: macos-26
platform: macos
artifact_name: delogohd-macos-26-arm64
artifact: build/ci/libDelogoHD.dylib
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install Debian build dependencies
if: matrix.platform == 'linux'
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
cmake \
debhelper \
git \
pkgconf
- name: Build Debian package
if: matrix.platform == 'linux'
run: |
. /etc/os-release
package_version="$(dpkg-parsechangelog -S Version)"
os_suffix="ubuntu${VERSION_ID}"
package_version="${package_version}+${os_suffix}"
sed -i "1s/([^)]*)/(${package_version})/" debian/changelog
dpkg-parsechangelog -S Version
dpkg-buildpackage -us -uc -b -j4
mkdir -p build/artifacts
cp ../dualsynth-delogohd_*.deb build/artifacts/
- name: Configure Windows
if: matrix.platform == 'windows'
shell: pwsh
run: >
cmake -S . -B build/ci
-G "${{ matrix.generator }}"
-A ${{ matrix.arch }}
-DDELOGOHD_BUILD_TEST_TOOLS=OFF
-DDELOGOHD_COPY_RELEASE=OFF
- name: Build
if: matrix.platform == 'windows'
run: cmake --build build/ci --config Release --parallel 4
- name: Configure macOS
if: matrix.platform == 'macos'
run: >
cmake -S . -B build/ci
-DCMAKE_BUILD_TYPE=Release
-DDELOGOHD_BUILD_TEST_TOOLS=OFF
-DDELOGOHD_COPY_RELEASE=OFF
- name: Build macOS
if: matrix.platform == 'macos'
run: cmake --build build/ci --parallel 4
- name: Upload plugin
uses: actions/upload-artifact@v7
with:
name: ${{ matrix.artifact_name }}
path: ${{ matrix.artifact }}
if-no-files-found: error