Skip to content

Commit 3374608

Browse files
committed
Add test release workflow
1 parent 9c62c88 commit 3374608

File tree

1 file changed

+130
-0
lines changed

1 file changed

+130
-0
lines changed

.github/workflows/test-release.yml

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
name: Test Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag_name:
7+
description: 'Release tag (e.g., v0.7.13-test1)'
8+
required: true
9+
type: string
10+
prerelease:
11+
description: 'Mark as pre-release'
12+
required: false
13+
type: boolean
14+
default: true
15+
16+
env:
17+
PROJECT_NAME: NeuralAmpModeler
18+
19+
jobs:
20+
build:
21+
name: Build-${{matrix.os}}
22+
runs-on: ${{matrix.os}}
23+
strategy:
24+
matrix:
25+
os: [macos-latest, windows-latest]
26+
include:
27+
- os: macos-latest
28+
build_dir: build-mac
29+
artifact_name: NeuralAmpModeler-mac.zip
30+
artifact_path: NeuralAmpModeler/build-mac/out/*.zip
31+
- os: windows-latest
32+
build_dir: build-win
33+
artifact_name: NeuralAmpModeler-win.zip
34+
artifact_path: NeuralAmpModeler/build-win/out/*.zip
35+
36+
steps:
37+
- name: Check out repository
38+
uses: actions/checkout@v2
39+
with:
40+
submodules: recursive
41+
42+
- name: Get VST3 SDK
43+
run: |
44+
cd iPlug2/Dependencies/IPlug
45+
./download-iplug-sdks.sh
46+
shell: bash
47+
48+
- name: Get Prebuilt Libs
49+
run: |
50+
cd iPlug2/Dependencies
51+
./download-prebuilt-libs.sh
52+
shell: bash
53+
54+
- name: Build macOS
55+
if: matrix.os == 'macos-latest'
56+
run: |
57+
cd ${{env.PROJECT_NAME}}/scripts
58+
./makedist-mac.sh full zip
59+
shell: bash
60+
61+
- name: Add msbuild to PATH (Windows)
62+
if: matrix.os == 'windows-latest'
63+
uses: microsoft/setup-msbuild@v1.0.2
64+
65+
- name: Build Windows
66+
if: matrix.os == 'windows-latest'
67+
run: |
68+
cd ${{env.PROJECT_NAME}}\scripts
69+
.\makedist-win.bat full zip
70+
shell: pwsh
71+
72+
- name: Upload build artifacts
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: ${{matrix.artifact_name}}
76+
path: ${{matrix.artifact_path}}
77+
retention-days: 90
78+
79+
release:
80+
name: Create Release
81+
needs: build
82+
runs-on: ubuntu-latest
83+
permissions:
84+
contents: write
85+
86+
steps:
87+
- name: Download macOS artifacts
88+
uses: actions/download-artifact@v4
89+
with:
90+
name: NeuralAmpModeler-mac.zip
91+
path: ./artifacts/mac
92+
93+
- name: Download Windows artifacts
94+
uses: actions/download-artifact@v4
95+
with:
96+
name: NeuralAmpModeler-win.zip
97+
path: ./artifacts/win
98+
99+
- name: Create Release
100+
uses: softprops/action-gh-release@v1
101+
with:
102+
tag_name: ${{ inputs.tag_name }}
103+
name: Test Release ${{ inputs.tag_name }}
104+
body: |
105+
## Test Build - ${{ inputs.tag_name }}
106+
107+
**Branch:** ${{ github.ref_name }}
108+
**Commit:** ${{ github.sha }}
109+
110+
### Downloads
111+
- **macOS**: Universal binary (Intel + Apple Silicon) - VST3, AU, Standalone
112+
- **Windows**: 64-bit - VST3, Standalone
113+
114+
### ⚠️ Testing Notice
115+
This is a test/preview release built from a development branch.
116+
- Not for production use
117+
- May contain experimental features
118+
- Report issues to the branch maintainer
119+
120+
### Installation
121+
1. Download the appropriate ZIP for your platform
122+
2. Extract the archive
123+
3. Follow installation instructions in the included README
124+
draft: false
125+
prerelease: ${{ inputs.prerelease }}
126+
files: |
127+
./artifacts/mac/*.zip
128+
./artifacts/win/*.zip
129+
env:
130+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)