-
Notifications
You must be signed in to change notification settings - Fork 17
153 lines (127 loc) · 5.1 KB
/
Copy pathbuild.yml
File metadata and controls
153 lines (127 loc) · 5.1 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
name: Build
on:
push:
branches: ['**']
tags: ['v*']
pull_request:
jobs:
# ── Windows 64-bit ──────────────────────────────────────────────────────────
build-windows-64:
name: Windows 64-bit
runs-on: windows-2025-vs2026
steps:
- uses: actions/checkout@v6
- name: Configure
run: cmake -B build64 -A x64 ./64klang3
- name: Build
run: cmake --build build64 --target 64klang3 --config Release
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: 64klang3-win64
path: build64/VST3/Release
include-hidden-files: true
# ── Windows 32-bit ──────────────────────────────────────────────────────────
build-windows-32:
name: Windows 32-bit
runs-on: windows-2025-vs2026
steps:
- uses: actions/checkout@v6
- name: Configure
run: cmake -B build32 -A Win32 ./64klang3
- name: Build
run: cmake --build build32 --target 64klang3 --config Release
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: 64klang3-win32
path: build32/VST3/Release
include-hidden-files: true
# ── macOS ARM ───────────────────────────────────────────────────────────────
build-macos-arm:
name: macOS ARM
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- name: Configure
run: cmake -B build-mac -DCMAKE_BUILD_TYPE=Release ./64klang3
- name: Build
run: cmake --build build-mac --target 64klang3 --config Release
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: 64klang3-macos-arm
path: build-mac/VST3/Release
include-hidden-files: true
# ── Linux ───────────────────────────────────────────────────────────────────
build-linux:
name: Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake g++ libx11-dev libgl-dev
- name: Configure
run: cmake -B build -DCMAKE_BUILD_TYPE=Release ./64klang3
- name: Build
run: cmake --build build --target 64klang3 --config Release
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: 64klang3-linux
path: build/VST3/Release
include-hidden-files: true
# ── Release (tag pushes only) ────────────────────────────────────────────
release:
name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
needs: [build-windows-64, build-windows-32, build-macos-arm, build-linux]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download all artifacts
uses: actions/download-artifact@v8
with:
path: artifacts
- name: Package artifacts
run: |
cd artifacts
mkdir -p pkg/win64 pkg/win32 pkg/macos pkg/linux
if [ -d 64klang3-win64/64klang3.vst3 ]; then
cp -a 64klang3-win64/64klang3.vst3 pkg/win64/
else
mkdir -p pkg/win64/64klang3.vst3
cp -a 64klang3-win64/. pkg/win64/64klang3.vst3/
fi
if [ -d 64klang3-win32/64klang3.vst3 ]; then
cp -a 64klang3-win32/64klang3.vst3 pkg/win32/
else
mkdir -p pkg/win32/64klang3.vst3
cp -a 64klang3-win32/. pkg/win32/64klang3.vst3/
fi
if [ -d 64klang3-macos-arm/64klang3.vst3 ]; then
cp -a 64klang3-macos-arm/64klang3.vst3 pkg/macos/
else
mkdir -p pkg/macos/64klang3.vst3
cp -a 64klang3-macos-arm/. pkg/macos/64klang3.vst3/
fi
if [ -d 64klang3-linux/64klang3.vst3 ]; then
cp -a 64klang3-linux/64klang3.vst3 pkg/linux/
else
mkdir -p pkg/linux/64klang3.vst3
cp -a 64klang3-linux/. pkg/linux/64klang3.vst3/
fi
(cd pkg/win64 && zip -r ../../../64klang3-win64.zip 64klang3.vst3)
(cd pkg/win32 && zip -r ../../../64klang3-win32.zip 64klang3.vst3)
(cd pkg/macos && zip -r ../../../64klang3-macos-arm.zip 64klang3.vst3)
(cd pkg/linux && zip -r ../../../64klang3-linux.zip 64klang3.vst3)
- name: Create GitHub Release
uses: softprops/action-gh-release@v3
with:
files: |
64klang3-win64.zip
64klang3-win32.zip
64klang3-macos-arm.zip
64klang3-linux.zip
generate_release_notes: true