Skip to content

Commit 6bfb60b

Browse files
committed
restore release/build functionality for v1.0.1
1 parent d692f34 commit 6bfb60b

File tree

2 files changed

+132
-136
lines changed

2 files changed

+132
-136
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Build
22

3-
#on:
4-
# push:
5-
# branches:
6-
# - '**'
3+
on:
4+
push:
5+
branches:
6+
- '**'
77

88
env:
99
BUILD_TYPE: Release

.github/workflows/release.yml

Lines changed: 128 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@ name: Release
22

33
on:
44
push:
5-
branches:
6-
- '**'
7-
#on:
8-
# push:
9-
# tags:
10-
# - 'v*'
5+
tags:
6+
- 'v*'
117

128
env:
139
BUILD_TYPE: Release
@@ -21,11 +17,11 @@ jobs:
2117
with:
2218
submodules: recursive
2319

24-
# - name: Get version from tag
25-
# if: startsWith(github.ref, 'refs/tags/')
26-
# run: |
27-
# VERSION=${GITHUB_REF#refs/tags/} # strips "refs/tags/"
28-
# echo "VERSION=$VERSION" >> $GITHUB_ENV
20+
- name: Get version from tag
21+
if: startsWith(github.ref, 'refs/tags/')
22+
run: |
23+
VERSION=${GITHUB_REF#refs/tags/}
24+
echo "VERSION=$VERSION" >> $GITHUB_ENV
2925
3026
- name: Upgrade CMake
3127
run: |
@@ -77,140 +73,140 @@ jobs:
7773
cp -R build/Setekh_artefacts/Release/AU/Setekh.component build/pkgroot/Library/Audio/Plug-Ins/Components/
7874
pkgbuild --root build/pkgroot \
7975
--identifier com.fullfxmedia.setekh \
80-
--version 1.0.0 \
76+
--version $VERSION \
8177
--install-location / \
8278
--sign "$APPLE_INSTALLER_STR" \
83-
build/Setekh-1.0.0.pkg
79+
build/Setekh-$VERSION.pkg
8480
8581
- name: Notarize & Staple PKG
8682
run: |
87-
xcrun notarytool submit build/Setekh-1.0.0.pkg \
83+
xcrun notarytool submit build/Setekh-$VERSION.pkg \
8884
--apple-id "${{ secrets.APPLE_ID_EMAIL }}" \
8985
--team-id "${{ secrets.APPLE_TEAM_ID }}" \
9086
--password "${{ secrets.APPLE_ID_PASSWORD }}" \
9187
--wait
92-
xcrun stapler staple build/Setekh-1.0.0.pkg
93-
spctl --assess --type install --verbose build/Setekh-1.0.0.pkg
88+
xcrun stapler staple build/Setekh-$VERSION.pkg
89+
spctl --assess --type install --verbose build/Setekh-$VERSION.pkg
9490
9591
- name: Upload
9692
uses: actions/upload-artifact@v4
9793
with:
9894
name: setekh-macos
9995
path: build/Setekh-*.pkg
10096

101-
# windows-build:
102-
# runs-on: windows-latest
103-
#
104-
# steps:
105-
# - uses: actions/checkout@v2
106-
# with:
107-
# submodules: recursive
108-
#
109-
# - name: Upgrade CMake
110-
# run: |
111-
# choco install cmake --version=4.0.2 --force --yes
112-
# cmake --version
113-
#
114-
# - name: Configure
115-
# run: cmake -G "Visual Studio 17 2022" -DBUILD_STANDALONE=OFF -DCMAKE_BUILD_TYPE=$env:BUILD_TYPE -S . -B ./build
116-
#
117-
# - name: Build
118-
# run: cmake --build ./build --config $env:BUILD_TYPE
119-
#
120-
# - name: Upload
121-
# uses: actions/upload-artifact@v4
122-
# with:
123-
# name: setekh-windows
124-
# path: |
125-
# ./build/Setekh_artefacts/Release/VST3
126-
# ./build/Setekh_artefacts/Release/readme.txt
127-
# !./build/Setekh_artefacts/Release/VST3/*.exp
128-
# !./build/Setekh_artefacts/Release/VST3/*.lib
129-
# !./build/Setekh_artefacts/Release/LV2/*.exp
130-
# !./build/Setekh_artefacts/Release/LV2/*.lib
131-
#
132-
# linux-build:
133-
# runs-on: ubuntu-latest
134-
# steps:
135-
# - uses: actions/checkout@v2
136-
# with:
137-
# submodules: recursive
138-
#
139-
# - name: Install build deps
140-
# run: |
141-
# sudo apt-get update
142-
# sudo apt-get install libx11-dev libfreetype-dev libfontconfig1-dev libasound2-dev libxrandr-dev libxinerama-dev libxcursor-dev
143-
#
144-
# - name: Upgrade CMake
145-
# run: |
146-
# sudo apt-get update
147-
# sudo apt-get install -y wget
148-
# wget https://github.com/Kitware/CMake/releases/download/v4.0.2/cmake-4.0.2-linux-x86_64.tar.gz
149-
# tar -xzf cmake-4.0.2-linux-x86_64.tar.gz
150-
# sudo cp -r cmake-4.0.2-linux-x86_64/* /usr/local/
151-
# cmake --version
152-
#
153-
# - name: Configure
154-
# run: cmake -G "Unix Makefiles" -DBUILD_STANDALONE=OFF -DCMAKE_BUILD_TYPE=$BUILD_TYPE -S . -B ./build
155-
#
156-
# - name: Build
157-
# run: cmake --build ./build --config $BUILD_TYPE
158-
#
159-
# - name: Upload
160-
# uses: actions/upload-artifact@v4
161-
# with:
162-
# name: setekh-linux
163-
# path: |
164-
# ./build/Setekh_artefacts/Release/LV2
165-
# ./build/Setekh_artefacts/Release/VST3
166-
# ./build/Setekh_artefacts/Release/readme.txt
167-
# !./build/Setekh_artefacts/Release/VST3/*.exp
168-
# !./build/Setekh_artefacts/Release/VST3/*.lib
169-
#
170-
# package-release:
171-
# runs-on: ubuntu-latest
172-
# permissions:
173-
# contents: write
174-
# needs: [windows-build, macos-universal-build, linux-build]
175-
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
176-
# strategy:
177-
# matrix:
178-
# os: [ windows, macos, linux ]
179-
# steps:
180-
# - name: Download ${{ matrix.os }} artifact
181-
# uses: actions/download-artifact@v4
182-
# with:
183-
# name: setekh-${{ matrix.os }}
184-
# path: artifacts/setekh-${{ matrix.os }}
185-
#
186-
# - name: Zip ${{ matrix.os }} artifact
187-
# run: |
188-
# TAG_NAME=${GITHUB_REF#refs/tags/}
189-
# cd artifacts
190-
# zip -r setekh-${{ matrix.os }}-${TAG_NAME}.zip setekh-${{ matrix.os }}
191-
#
192-
# - name: Upload zipped artifact
193-
# uses: actions/upload-artifact@v4
194-
# with:
195-
# name: setekh-${{ matrix.os }}-zipped
196-
# path: artifacts/setekh-${{ matrix.os }}-*.zip
197-
#
198-
# release:
199-
# runs-on: ubuntu-latest
200-
# permissions:
201-
# contents: write
202-
# needs: package-release
203-
# steps:
204-
# - name: Download zipped artifacts
205-
# uses: actions/download-artifact@v4
206-
# with:
207-
# path: artifacts
208-
#
209-
# - name: Create Release
210-
# uses: softprops/action-gh-release@v2
211-
# with:
212-
# draft: true
213-
# tag_name: ${{ github.ref_name }}
214-
# files: artifacts/**/*.zip
215-
# env:
216-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97+
windows-build:
98+
runs-on: windows-latest
99+
100+
steps:
101+
- uses: actions/checkout@v2
102+
with:
103+
submodules: recursive
104+
105+
- name: Upgrade CMake
106+
run: |
107+
choco install cmake --version=4.0.2 --force --yes
108+
cmake --version
109+
110+
- name: Configure
111+
run: cmake -G "Visual Studio 17 2022" -DBUILD_STANDALONE=OFF -DCMAKE_BUILD_TYPE=$env:BUILD_TYPE -S . -B ./build
112+
113+
- name: Build
114+
run: cmake --build ./build --config $env:BUILD_TYPE
115+
116+
- name: Upload
117+
uses: actions/upload-artifact@v4
118+
with:
119+
name: setekh-windows
120+
path: |
121+
./build/Setekh_artefacts/Release/VST3
122+
./build/Setekh_artefacts/Release/readme.txt
123+
!./build/Setekh_artefacts/Release/VST3/*.exp
124+
!./build/Setekh_artefacts/Release/VST3/*.lib
125+
!./build/Setekh_artefacts/Release/LV2/*.exp
126+
!./build/Setekh_artefacts/Release/LV2/*.lib
127+
128+
linux-build:
129+
runs-on: ubuntu-latest
130+
steps:
131+
- uses: actions/checkout@v2
132+
with:
133+
submodules: recursive
134+
135+
- name: Install build deps
136+
run: |
137+
sudo apt-get update
138+
sudo apt-get install libx11-dev libfreetype-dev libfontconfig1-dev libasound2-dev libxrandr-dev libxinerama-dev libxcursor-dev
139+
140+
- name: Upgrade CMake
141+
run: |
142+
sudo apt-get update
143+
sudo apt-get install -y wget
144+
wget https://github.com/Kitware/CMake/releases/download/v4.0.2/cmake-4.0.2-linux-x86_64.tar.gz
145+
tar -xzf cmake-4.0.2-linux-x86_64.tar.gz
146+
sudo cp -r cmake-4.0.2-linux-x86_64/* /usr/local/
147+
cmake --version
148+
149+
- name: Configure
150+
run: cmake -G "Unix Makefiles" -DBUILD_STANDALONE=OFF -DCMAKE_BUILD_TYPE=$BUILD_TYPE -S . -B ./build
151+
152+
- name: Build
153+
run: cmake --build ./build --config $BUILD_TYPE
154+
155+
- name: Upload
156+
uses: actions/upload-artifact@v4
157+
with:
158+
name: setekh-linux
159+
path: |
160+
./build/Setekh_artefacts/Release/LV2
161+
./build/Setekh_artefacts/Release/VST3
162+
./build/Setekh_artefacts/Release/readme.txt
163+
!./build/Setekh_artefacts/Release/VST3/*.exp
164+
!./build/Setekh_artefacts/Release/VST3/*.lib
165+
166+
package-release:
167+
runs-on: ubuntu-latest
168+
permissions:
169+
contents: write
170+
needs: [windows-build, macos-universal-build, linux-build]
171+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
172+
strategy:
173+
matrix:
174+
os: [ windows, macos, linux ]
175+
steps:
176+
- name: Download ${{ matrix.os }} artifact
177+
uses: actions/download-artifact@v4
178+
with:
179+
name: setekh-${{ matrix.os }}
180+
path: artifacts/setekh-${{ matrix.os }}
181+
182+
- name: Zip ${{ matrix.os }} artifact
183+
run: |
184+
TAG_NAME=${GITHUB_REF#refs/tags/}
185+
cd artifacts
186+
zip -r setekh-${{ matrix.os }}-${TAG_NAME}.zip setekh-${{ matrix.os }}
187+
188+
- name: Upload zipped artifact
189+
uses: actions/upload-artifact@v4
190+
with:
191+
name: setekh-${{ matrix.os }}-zipped
192+
path: artifacts/setekh-${{ matrix.os }}-*.zip
193+
194+
release:
195+
runs-on: ubuntu-latest
196+
permissions:
197+
contents: write
198+
needs: package-release
199+
steps:
200+
- name: Download zipped artifacts
201+
uses: actions/download-artifact@v4
202+
with:
203+
path: artifacts
204+
205+
- name: Create Release
206+
uses: softprops/action-gh-release@v2
207+
with:
208+
draft: true
209+
tag_name: ${{ github.ref_name }}
210+
files: artifacts/**/*.zip
211+
env:
212+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)