Browse Source

Fix build workflow for VCV Rack plugin

Updated the GitHub Actions workflow to improve the build process for VCV Rack plugins. Changes include fixing the build command and ensuring proper verification of premake versions.
pull/81/head
András Szabó GitHub 3 weeks ago
parent
commit
c01646de9f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 11 deletions
  1. +12
    -11
      .github/workflows/build.yml

+ 12
- 11
.github/workflows/build.yml View File

@@ -1,5 +1,4 @@
name: Build VCV Rack Plugin name: Build VCV Rack Plugin
# on: [push, pull_request]
on: on:
push: push:
paths: paths:
@@ -42,6 +41,9 @@ jobs:
container: container:
image: ghcr.io/qno/rack-plugin-toolchain-win-linux image: ghcr.io/qno/rack-plugin-toolchain-win-linux
options: --user root options: --user root
# This ensures /usr/local/bin is at the front of PATH for all steps in this job
env:
PATH: /usr/local/bin:$PATH
strategy: strategy:
matrix: matrix:
platform: [win, lin] platform: [win, lin]
@@ -55,7 +57,6 @@ jobs:
path: plugin.json path: plugin.json
key: ${{ github.sha }}-${{ github.run_id }} key: ${{ github.sha }}-${{ github.run_id }}


# ▼▼▼ REPLACED STEP: Download premake binaries directly ▼▼▼
- name: Download and setup premake - name: Download and setup premake
run: | run: |
# Download premake5 (used for Windows cross-compilation in this container) # Download premake5 (used for Windows cross-compilation in this container)
@@ -63,24 +64,24 @@ jobs:
tar -xzf premake-5.0.0-beta2-linux.tar.gz tar -xzf premake-5.0.0-beta2-linux.tar.gz
chmod +x premake5 chmod +x premake5
mv premake5 /usr/local/bin/ mv premake5 /usr/local/bin/
# Also download premake4 (referenced in the Makefile for Linux target) # Also download premake4 (referenced in the Makefile for Linux target)
wget -q https://github.com/premake/premake-4.x/releases/download/v4.4-beta5/premake-4.4-beta5-linux.tar.gz wget -q https://github.com/premake/premake-4.x/releases/download/v4.4-beta5/premake-4.4-beta5-linux.tar.gz
tar -xzf premake-4.4-beta5-linux.tar.gz tar -xzf premake-4.4-beta5-linux.tar.gz
chmod +x premake4 chmod +x premake4
mv premake4 /usr/local/bin/ mv premake4 /usr/local/bin/
# Verify both are available
# Verify both are available using absolute paths
echo "Premake versions available:" echo "Premake versions available:"
premake5 --version
premake4 --version
# ▲▲▲ REPLACED STEP ▲▲▲
/usr/local/bin/premake5 --version
/usr/local/bin/premake4 --version

- name: Build plugin - name: Build plugin
run: | run: |
export PLUGIN_DIR=$GITHUB_WORKSPACE export PLUGIN_DIR=$GITHUB_WORKSPACE
pushd ${{ env.rack-plugin-toolchain-dir }} pushd ${{ env.rack-plugin-toolchain-dir }}
make plugin-build-${{ matrix.platform }}-64
# Fixed: Added the missing 'x' before 64. The command must be plugin-build-win-x64/lin-x64.
make plugin-build-${{ matrix.platform }}-x64
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
@@ -88,7 +89,7 @@ jobs:
name: ${{ matrix.platform }} name: ${{ matrix.platform }}


build-mac: build-mac:
if: false # <-- Add this line to disable the job
if: false # <-- Mac jobs are disabled to focus on Windows/Linux first
name: mac name: mac
needs: modify-plugin-version needs: modify-plugin-version
runs-on: macos-latest runs-on: macos-latest


Loading…
Cancel
Save