Skip to content

Commit

Permalink
Merge pull request #386 from stoermelder/v2.0.beta4
Browse files Browse the repository at this point in the history
v2.0.beta4
  • Loading branch information
stoermelder authored Apr 9, 2024
2 parents ee648a2 + a834d68 commit b8f505c
Show file tree
Hide file tree
Showing 53 changed files with 1,557 additions and 1,062 deletions.
158 changes: 158 additions & 0 deletions .github/workflows/build-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
name: Build VCV Rack Plugin
on: [push, pull_request]

env:
rack-sdk-version: latest
rack-plugin-toolchain-dir: /home/build/rack-plugin-toolchain

defaults:
run:
shell: bash

jobs:

modify-plugin-version:
name: Modify plugin version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: plugin-version-cache
with:
path: plugin.json
key: ${{ github.sha }}-${{ github.run_id }}
- run: |
gitrev=`git rev-parse --short HEAD`
pluginversion=`jq -r '.version' plugin.json`
echo "Set plugin version from $pluginversion to $pluginversion-$gitrev"
cat <<< `jq --arg VERSION "$pluginversion-$gitrev" '.version=$VERSION' plugin.json` > plugin.json
# only modify plugin version if no tag was created
if: "! startsWith(github.ref, 'refs/tags/v')"
build:
name: ${{ matrix.platform }}
needs: modify-plugin-version
runs-on: ubuntu-latest
container:
image: ghcr.io/qno/rack-plugin-toolchain-win-linux
options: --user root
strategy:
matrix:
platform: [win-x64, lin-x64]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/cache@v3
id: plugin-version-cache
with:
path: plugin.json
key: ${{ github.sha }}-${{ github.run_id }}
- name: Build plugin
run: |
export PLUGIN_DIR=$GITHUB_WORKSPACE
pushd ${{ env.rack-plugin-toolchain-dir }}
make plugin-build-${{ matrix.platform }}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
path: ${{ env.rack-plugin-toolchain-dir }}/plugin-build
name: ${{ matrix.platform }}

build-mac:
name: mac
needs: modify-plugin-version
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
platform: [x64, arm64]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/cache@v3
id: plugin-version-cache
with:
path: plugin.json
key: ${{ github.sha }}-${{ github.run_id }}
- name: Get Rack-SDK
run: |
pushd $HOME
wget -O Rack-SDK.zip https://vcvrack.com/downloads/Rack-SDK-${{ env.rack-sdk-version }}-mac-${{ matrix.platform }}.zip
unzip Rack-SDK.zip
- name: Build plugin
run: |
CROSS_COMPILE_TARGET_x64=x86_64-apple-darwin
CROSS_COMPILE_TARGET_arm64=arm64-apple-darwin
export RACK_DIR=$HOME/Rack-SDK
export CROSS_COMPILE=$CROSS_COMPILE_TARGET_${{ matrix.platform }}
make dep
make dist
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
path: dist/*.vcvplugin
name: mac-${{ matrix.platform }}

publish:
name: Publish plugin
# only create a release if a tag was created that is called e.g. v1.2.3
# see also https://vcvrack.com/manual/Manifest#version
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: [build, build-mac]
steps:
- uses: actions/checkout@v3
- uses: FranzDiebold/github-env-vars-action@v2
- name: Check if plugin version matches tag
run: |
pluginversion=`jq -r '.version' plugin.json`
if [ "v$pluginversion" != "${{ env.CI_REF_NAME }}" ]; then
echo "Plugin version from plugin.json 'v$pluginversion' doesn't match with tag version '${{ env.CI_REF_NAME }}'"
exit 1
fi
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
name: Release ${{ env.CI_REF_NAME }}
body: |
${{ env.CI_REPOSITORY_NAME }} VCV Rack Plugin ${{ env.CI_REF_NAME }}
draft: false
prerelease: false
- uses: actions/download-artifact@v3
with:
path: _artifacts
- name: Upload release assets
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: _artifacts/**/*.vcvplugin
tag: ${{ github.ref }}
file_glob: true

publish-nightly:
name: Publish Nightly
# only create a release if a tag was created that is called e.g. v1.2.3
# see also https://vcvrack.com/manual/Manifest#version
if: ${{ github.ref == 'refs/heads/v2-dev' && github.repository_owner == 'stoermelder' }}
runs-on: ubuntu-latest
needs: [build, build-mac]
steps:
- uses: actions/download-artifact@v3
with:
path: _artifacts
- name: Delete old release assets
uses: mknejp/delete-release-assets@v1
with:
token: ${{ github.token }}
tag: Nightly # This may also be of the form 'refs/tags/staging'
assets: '*'
- name: Upload release assets
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: _artifacts/**/*.vcvplugin
tag: Nightly
file_glob: true
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
## 2.0.beta4

### Fixes and Changes

- Added panel option to follow Rack's dark panel setting
- Modules [8FACE, 8FACEx2](./docs/EightFace.md)
- Allow disabling of "long-press" for changing the number of active slots (#354)
- Module [8FACE mk2](./docs/EightFaceMk2.md)
- Allow disabling of "long-press" for changing the number of active slots (#354)
- Added HSL color picker for bound modules' box
- Fixed broken module-id mapping when adding using STRIP or STRIP++
- Fixed crash while exceding 0..10V in Volt-mode (#377)
- Increased maximum number of expanders to 15
- Added missing reset-handling for "Trigger random", "Trigger pseudo-random" and "Trigger random walk"
- Module [GLUE](./docs/Glue.md)
- Added HSL color picker
- Module [GRIP](./docs/Grip.md)
- Fixed broken parameter locking (#360)
- Module [GOTO](./docs/Goto.md)
- Fixed broken zoom behavior when jumping by buttons on the panel
- Improved smooth transition speed on long distances (#376)
- Module [MB](./docs/Mb.md)
- Fixed crash on exiting Rack's after adding MB (#352)
- Fixed wrong hotkey modifier on Mac (Ctrl instead of Cmd) on Space-key
- Added missing template loading after adding a module (#369)
- Module [ROTOR mod A](./docs/RotorA.md)
- Fixed occasional crashes (#365)
- Module [SAIL](./docs/Sail.md)
- Fixed occasional crash (#358)
- Module [STRIP](./docs/Strip.md)
- Fixed crash in rare cases (Surge-modules) (#366)
- Fixed wrong hotkey modifier on Mac (Ctrl instead of Cmd) on Cmd+Shift+L
- Module [STRIP++](./docs/StripPp.md)
- Fixed wrong hotkey modifier on Mac (Ctrl instead of Cmd)
- Module [STROKE](./docs/Stroke.md)
- Added commands "Zoom to specific module" and "Zoom to specific module (smooth)" (#357)
- Fixed wrong hotkey modifier on Mac (Ctrl instead of Cmd)
- Fixed broken "Zoom to module" and "Zoom toggle" commands (#382)
- Module [SPIN](./docs/Spin.md)
- Fixed middle mouse button handling in Rack v2 (#372)
- Module [TRANSIT](./docs/Transit.md)
- Allow disabling of "long-press" for changing the number of active snapshots (#354)
- Increased maximum number of expanders to 15 (#381)
- Added missing reset-handling for "Trigger random", "Trigger pseudo-random" and "Trigger random walk"

## 2.0.beta3

### New modules
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ endif
@# Copy distributables
cp -R $(DISTRIBUTABLES) dist/$(SLUG)/
@# Create vcvplugin package
cd dist && tar -c $(SLUG) | zstd -$(ZSTD_COMPRESSION_LEVEL) -o "$(SLUG)"-"$(VERSION)"-$(ARCH_OS_NAME).vcvplugin
cd dist && tar -c $(SLUG) | zstd -$(ZSTD_COMPRESSION_LEVEL) -o "$(SLUG)"-"$(VERSION)"-$(ARCH_NAME).vcvplugin
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# stoermelder PackOne

<!-- Version and License Badges -->
![Version](https://img.shields.io/badge/version-2.0.beta2-green.svg?style=flat-square)
![Rack SDK](https://img.shields.io/badge/Rack--SDK-2.1.0-red.svg?style=flat-square)
![Version](https://img.shields.io/badge/version-2.0.beta4-green.svg?style=flat-square)
![License](https://img.shields.io/badge/license-GPLv3+-blue.svg?style=flat-square)
![Language](https://img.shields.io/badge/language-C++-yellow.svg?style=flat-square)

Expand Down
160 changes: 0 additions & 160 deletions azure-pipelines.yml

This file was deleted.

3 changes: 2 additions & 1 deletion docs/EightFace.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,5 @@ With the option "Autoload first preset" on the context menu you can autoload the
- Added retrigger-function for CV-input channel 2 in C4 mode (#330)
- Fixed unconnected modules after patch reload (#338)
- Fixed broken reset-behavior for "Trigger forward", "Trigger reverse" and "Trigger pingpong" (#347)
- Added missing reset-handling for "Trigger alternating" and "Trigger shuffle"
- Added missing reset-handling for "Trigger alternating" and "Trigger shuffle"
- Allow disabling of "long press" for changing the number of active slots (#354)
Loading

0 comments on commit b8f505c

Please sign in to comment.