Skip to content

Commit 888f9e2

Browse files
tucktuckg00seclaude
andcommitted
Add GitHub Actions release workflow for multi-platform builds
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d58e247 commit 888f9e2

1 file changed

Lines changed: 96 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build-windows:
10+
runs-on: windows-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
submodules: recursive
15+
16+
- name: Configure
17+
run: cmake -B build -S project -DCMAKE_BUILD_TYPE=Release
18+
19+
- name: Build
20+
run: cmake --build build --config Release
21+
22+
- name: Package
23+
run: |
24+
7z a INTERSECT-Windows.zip ./build/Intersect_artefacts/Release/VST3/INTERSECT.vst3 ./build/Intersect_artefacts/Release/Standalone/INTERSECT.exe
25+
26+
- uses: actions/upload-artifact@v4
27+
with:
28+
name: INTERSECT-Windows
29+
path: INTERSECT-Windows.zip
30+
31+
build-linux:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Install dependencies
35+
run: |
36+
sudo apt-get update
37+
sudo apt-get install -y libasound2-dev libfreetype-dev libx11-dev libxrandr-dev libxcursor-dev libxinerama-dev libwebkit2gtk-4.1-dev libcurl4-openssl-dev
38+
39+
- uses: actions/checkout@v4
40+
with:
41+
submodules: recursive
42+
43+
- name: Configure
44+
run: cmake -B build -S project -DCMAKE_BUILD_TYPE=Release
45+
46+
- name: Build
47+
run: cmake --build build --config Release
48+
49+
- name: Package
50+
run: |
51+
zip -r INTERSECT-Linux.zip build/Intersect_artefacts/Release/VST3/INTERSECT.vst3 build/Intersect_artefacts/Release/Standalone/INTERSECT
52+
53+
- uses: actions/upload-artifact@v4
54+
with:
55+
name: INTERSECT-Linux
56+
path: INTERSECT-Linux.zip
57+
58+
build-macos:
59+
runs-on: macos-latest
60+
steps:
61+
- uses: actions/checkout@v4
62+
with:
63+
submodules: recursive
64+
65+
- name: Configure
66+
run: cmake -B build -S project -DCMAKE_BUILD_TYPE=Release
67+
68+
- name: Build
69+
run: cmake --build build --config Release
70+
71+
- name: Package
72+
run: |
73+
zip -r INTERSECT-macOS.zip build/Intersect_artefacts/Release/VST3/INTERSECT.vst3 build/Intersect_artefacts/Release/Standalone/INTERSECT.app build/Intersect_artefacts/Release/AU/INTERSECT.component
74+
75+
- uses: actions/upload-artifact@v4
76+
with:
77+
name: INTERSECT-macOS
78+
path: INTERSECT-macOS.zip
79+
80+
release:
81+
needs: [build-windows, build-linux, build-macos]
82+
runs-on: ubuntu-latest
83+
permissions:
84+
contents: write
85+
steps:
86+
- uses: actions/download-artifact@v4
87+
with:
88+
path: artifacts
89+
90+
- name: Create Release
91+
uses: softprops/action-gh-release@v2
92+
with:
93+
files: |
94+
artifacts/INTERSECT-Windows/INTERSECT-Windows.zip
95+
artifacts/INTERSECT-Linux/INTERSECT-Linux.zip
96+
artifacts/INTERSECT-macOS/INTERSECT-macOS.zip

0 commit comments

Comments
 (0)