Skip to content

Remove plugin.json version check because it will not work with releas… #825

Remove plugin.json version check because it will not work with releas…

Remove plugin.json version check because it will not work with releas… #825

Workflow file for this run

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:
build:
name: ${{ matrix.platform }}
runs-on: ubuntu-latest
container:
image: ghcr.io/qno/rack-plugin-toolchain-win-linux
options: --user root
strategy:
fail-fast: false
matrix:
platform: [win-x64, lin-x64]
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
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 }}
cd plugin-build && sha256sum *.vcvplugin > checksum_${{ matrix.platform }}.txt && cd ..
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: |
${{ env.rack-plugin-toolchain-dir }}/plugin-build/*.vcvplugin
${{ env.rack-plugin-toolchain-dir }}/plugin-build/checksum_*.txt
name: ${{ matrix.platform }}
build-mac:
name: mac
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
platform: [x64, arm64]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/cache@v4
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-x64%2barm64.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
cd dist && shasum -a 256 *.vcvplugin > checksum_mac-${{ matrix.platform }}.txt && cd ..
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: |
dist/*.vcvplugin
dist/checksum_*.txt
name: mac-${{ matrix.platform }}
publish-release-build:

Check failure on line 83 in .github/workflows/build-plugin.yml

View workflow run for this annotation

GitHub Actions / Build VCV Rack Plugin

Invalid workflow file

The workflow is not valid. .github/workflows/build-plugin.yml (Line: 83, Col: 5): Unexpected value 'publish-release-build'
name: Publish Release
if: (startsWith(github.ref, 'refs/tags/v2.') || startsWith(github.ref, 'refs/tags/rc2.')) && github.repository_owner == 'cosinekitty'
runs-on: ubuntu-latest
needs: [build, build-mac]
steps:
- uses: actions/checkout@v4
- uses: FranzDiebold/github-env-vars-action@v2
- name: Check if plugin version matches tag
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref }}
name: Release ${{ env.CI_REF_NAME }}
body: |
Sapphire ${{ env.CI_REF_NAME }} for VCV Rack
draft: false
prerelease: false
- uses: actions/download-artifact@v4
with:
path: _artifacts
- name: Upload release assets
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: _artifacts/**/*
tag: ${{ github.ref }}
file_glob: true
publish-dev-build:
name: Publish Development Build
if: ${{ github.ref == 'refs/heads/stage' && github.repository_owner == 'cosinekitty' }}
runs-on: ubuntu-latest
needs: [build, build-mac]
steps:
- uses: actions/download-artifact@v4
with:
path: _artifacts
- name: Delete old release assets
uses: mknejp/delete-release-assets@v1
with:
token: ${{ github.token }}
tag: Development
assets: '*'
- name: Upload release assets
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: _artifacts/**/*
tag: Development
file_glob: true
overwrite: true