add devel branch to pipeline #238
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows (LV2, VST3) | |
on: | |
push: | |
branches: | |
- main | |
- devel | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Setup MSYS2 | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: UCRT64 | |
update: true | |
- name: Building | |
run: | | |
pacman -S --noconfirm git mingw-w64-ucrt-x86_64-toolchain mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-libsndfile mingw-w64-ucrt-x86_64-rapidjson mingw-w64-ucrt-x86_64-cairo mingw-w64-ucrt-x86_64-lv2 make | |
rm -fr /ucrt64/lib/*thread*.dll.a | |
git clone https://github.com/Geonkick-Synthesizer/geonkick.git | |
git clone --recursive https://github.com/Geonkick-Synthesizer/vst3sdk.git | |
mkdir -p /d/a/geonkick/build | |
cd /d/a/geonkick/build | |
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=./install -DVST3_SDK_PATH=/d/a/geonkick/geonkick/vst3sdk /d/a/geonkick/geonkick/geonkick | |
sed -i 's/std:://g' /d/a/geonkick/geonkick/vst3sdk/public.sdk/source/vst/utility/alignedalloc.h | |
make VERBOSE=1 | |
mkdir -p Geonkick.vst3/Contents/x86_64-win | |
cp -fr /d/a/geonkick/build/src/plugin/vst/Geonkick.dll /d/a/geonkick/build/Geonkick.vst3/Contents/x86_64-win/Geonkick.vst3 | |
mkdir geonkick.lv2 | |
cp -fr /d/a/geonkick/build/src/plugin/lv2/*.dll /d/a/geonkick/build/geonkick.lv2 | |
cp -fr /d/a/geonkick/geonkick/geonkick/src/plugin/lv2/geonkick_win.lv2/* /d/a/geonkick/build/geonkick.lv2 | |
mkdir plugins | |
cp -fr geonkick.lv2 plugins | |
cp -fr Geonkick.vst3 plugins | |
mkdir plugins/presets | |
cp -fr /d/a/geonkick/build/presets/AVL-Drumkit plugins/presets | |
cp -fr /d/a/geonkick/build/presets/DigitalSamba plugins/presets | |
cp -fr /d/a/geonkick/build/presets/DSoS plugins/presets | |
cp -fr /d/a/geonkick/build/presets/GeonkickBells plugins/presets | |
cp -fr /d/a/geonkick/build/presets/TimeKit plugins/presets | |
cp -fr /d/a/geonkick/build/presets/UnfaTutorial plugins/presets | |
- name: Upload Build Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: geonkick-build | |
path: D:\a\geonkick\build\plugins | |
create-ssi: | |
needs: build | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: pwsh {0} | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Determine Version Info | |
id: version | |
run: | | |
if ($env:GITHUB_REF -like 'refs/tags/*') { | |
$tag = $env:GITHUB_REF -replace 'refs/tags/', '' | |
echo "VERSION_INFO=tag-$tag" >> $GITHUB_ENV | |
} else { | |
echo "VERSION_INFO=commit-" + $env:GITHUB_SHA.Substring(0, 7) >> $GITHUB_ENV | |
} | |
echo "VERSION_INFO = $env:VERSION_INFO" | |
shell: pwsh | |
- name: Download Build Artifacts | |
uses: actions/download-artifact@v2 | |
with: | |
name: geonkick-build | |
path: D:\a\geonkick\build\plugins | |
- name: Download and Install Inno Setup | |
run: | | |
Invoke-WebRequest -Uri 'https://jrsoftware.org/download.php/is.exe' -OutFile 'C:\is.exe' | |
Start-Process -Wait -FilePath 'C:\is.exe' -ArgumentList '/VERYSILENT', '/NORESTART' | |
Remove-Item -Path 'C:\is.exe' | |
- name: Compile Inno Setup Script | |
run: | | |
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "D:\a\geonkick\geonkick\.github\workflows\GeonkickInstall.iss" | |
& "cp" "D:\a\geonkick\geonkick\.github\workflows\Output\mysetup.exe" "D:\a\geonkick\build\plugins\GeonkickInstaller-v3.3.1-x86_64.exe" | |
& "ls" "D:\a\geonkick\build\plugins" | |
- name: Upload Installer | |
uses: actions/upload-artifact@v2 | |
with: | |
name: geonkick-installer | |
path: D:\a\geonkick\build\plugins\GeonkickInstaller-v3.3.1-x86_64.exe |