Skip to content

Commit df2c1a3

Browse files
committed
flatten zip archives, fix up versioning of artifacts
1 parent a074fe9 commit df2c1a3

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
sudo apt update
2626
sudo apt-get install libx11-dev libfreetype-dev libfontconfig1-dev libasound2-dev libxrandr-dev libxinerama-dev libxcursor-dev
2727
28-
- name: Generate Build Files
28+
- name: Configure
2929
run: |
3030
cmake -G "Unix Makefiles" -DBUILD_STANDALONE=OFF -DCMAKE_BUILD_TYPE=Release -S . -B ./build
3131

.github/workflows/release.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,8 @@ jobs:
2525
2626
- name: Fix cmake tap conflict
2727
run: |
28-
# Uninstall any existing cmake (from pinned/local tap)
2928
brew uninstall --ignore-dependencies cmake || true
30-
31-
# Install cmake from homebrew/core
3229
brew install cmake
33-
34-
# Verify installation
3530
cmake --version
3631
3732
- name: Create Build Environment
@@ -40,7 +35,7 @@ jobs:
4035
- name: Configure CMake
4136
shell: bash
4237
working-directory: ${{github.workspace}}/build
43-
run: cmake $GITHUB_WORKSPACE -G "Xcode"
38+
run: cmake $GITHUB_WORKSPACE -G "Xcode" -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
4439

4540
- name: Build
4641
working-directory: ${{github.workspace}}/build
@@ -107,6 +102,13 @@ jobs:
107102
with:
108103
submodules: recursive
109104

105+
- name: Get version from tag
106+
if: startsWith(github.ref, 'refs/tags/')
107+
run: |
108+
$VERSION = "$env:GITHUB_REF" -replace "refs/tags/v", ""
109+
echo "VERSION=$VERSION" >> $env:GITHUB_ENV
110+
echo "Set VERSION to: $VERSION"
111+
110112
- name: Upgrade CMake
111113
run: |
112114
choco install cmake --version=3.22.5 --force --yes
@@ -137,6 +139,13 @@ jobs:
137139
with:
138140
submodules: recursive
139141

142+
- name: Get version from tag
143+
if: startsWith(github.ref, 'refs/tags/')
144+
run: |
145+
$VERSION = "$env:GITHUB_REF" -replace "refs/tags/v", ""
146+
echo "VERSION=$VERSION" >> $env:GITHUB_ENV
147+
echo "Set VERSION to: $VERSION"
148+
140149
- name: Install build deps
141150
run: |
142151
sudo apt-get update
@@ -179,7 +188,15 @@ jobs:
179188
run: |
180189
TAG_NAME=${GITHUB_REF#refs/tags/}
181190
cd artifacts
182-
zip -r setekh-${{ matrix.os }}-${TAG_NAME}.zip setekh-${{ matrix.os }}
191+
if [ "${{ matrix.os }}" = "windows" ]; then
192+
cp -r setekh-windows/VST3/Setekh.vst3 setekh-windows/
193+
zip -r setekh-windows-${TAG_NAME}.zip setekh-windows/Setekh.vst3
194+
elif [ "${{ matrix.os }}" = "linux" ]; then
195+
cp setekh-linux/VST3/Setekh.vst3/Contents/x86_64-linux/Setekh.so setekh-linux/
196+
zip -r setekh-linux-${TAG_NAME}.zip setekh-linux/Setekh.so
197+
else
198+
zip -r setekh-macos-${TAG_NAME}.zip setekh-macos
199+
fi
183200
184201
- name: Upload zipped artifact
185202
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)