Feat: separate workflows for plugins
All checks were successful
Deploy Website / deploy (push) Has been skipped
All checks were successful
Deploy Website / deploy (push) Has been skipped
This commit is contained in:
56
.github/workflows/build-plugins-linux.yml
vendored
Normal file
56
.github/workflows/build-plugins-linux.yml
vendored
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
name: Build Plugins Linux
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 30
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install Rust toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
targets: x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
|
- name: Cache Rust dependencies
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
key: x86_64-unknown-linux-gnu-plugins
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y build-essential cmake pkg-config libasound2-dev libclang-dev libjack-dev \
|
||||||
|
libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgl1-mesa-dev \
|
||||||
|
libx11-dev libx11-xcb-dev libxcursor-dev libxrandr-dev libxi-dev libwayland-dev
|
||||||
|
|
||||||
|
- name: Build plugins
|
||||||
|
run: cargo xtask bundle cagire-plugins --release --target x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
|
- name: Prepare plugin artifacts
|
||||||
|
run: |
|
||||||
|
mkdir -p staging/clap staging/vst3
|
||||||
|
cp -R target/bundled/cagire-plugins.clap staging/clap/
|
||||||
|
cp -R target/bundled/cagire-plugins.vst3 staging/vst3/
|
||||||
|
|
||||||
|
- name: Upload CLAP artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: plugins-linux-x86_64-clap
|
||||||
|
path: staging/clap/
|
||||||
|
|
||||||
|
- name: Upload VST3 artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: plugins-linux-x86_64-vst3
|
||||||
|
path: staging/vst3/
|
||||||
66
.github/workflows/build-plugins-macos.yml
vendored
Normal file
66
.github/workflows/build-plugins-macos.yml
vendored
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
name: Build Plugins macOS
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
matrix:
|
||||||
|
type: string
|
||||||
|
default: '[{"os":"macos-14","target":"aarch64-apple-darwin","artifact":"plugins-macos-aarch64"},{"os":"macos-15-intel","target":"x86_64-apple-darwin","artifact":"plugins-macos-x86_64"}]'
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
matrix:
|
||||||
|
type: string
|
||||||
|
default: '[{"os":"macos-14","target":"aarch64-apple-darwin","artifact":"plugins-macos-aarch64"}]'
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
MACOSX_DEPLOYMENT_TARGET: "12.0"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include: ${{ fromJSON(inputs.matrix) }}
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
timeout-minutes: 30
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install Rust toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
targets: ${{ matrix.target }}
|
||||||
|
|
||||||
|
- name: Cache Rust dependencies
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
key: ${{ matrix.target }}-plugins
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: brew list cmake &>/dev/null || brew install cmake
|
||||||
|
|
||||||
|
- name: Build plugins
|
||||||
|
run: cargo xtask bundle cagire-plugins --release --target ${{ matrix.target }}
|
||||||
|
|
||||||
|
- name: Prepare plugin artifacts
|
||||||
|
run: |
|
||||||
|
mkdir -p staging/clap staging/vst3
|
||||||
|
cp -R target/bundled/cagire-plugins.clap staging/clap/
|
||||||
|
cp -R target/bundled/cagire-plugins.vst3 staging/vst3/
|
||||||
|
|
||||||
|
- name: Upload CLAP artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ${{ matrix.artifact }}-clap
|
||||||
|
path: staging/clap/
|
||||||
|
|
||||||
|
- name: Upload VST3 artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ${{ matrix.artifact }}-vst3
|
||||||
|
path: staging/vst3/
|
||||||
59
.github/workflows/build-plugins-rpi.yml
vendored
Normal file
59
.github/workflows/build-plugins-rpi.yml
vendored
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
name: Build Plugins RPi
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 45
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install Rust toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
targets: aarch64-unknown-linux-gnu
|
||||||
|
|
||||||
|
- name: Cache Rust dependencies
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
key: aarch64-unknown-linux-gnu-plugins
|
||||||
|
|
||||||
|
- name: Install cross
|
||||||
|
run: cargo install cross --git https://github.com/cross-rs/cross
|
||||||
|
|
||||||
|
- name: Build plugins
|
||||||
|
run: cross build --release -p cagire-plugins --target aarch64-unknown-linux-gnu
|
||||||
|
|
||||||
|
- name: Prepare plugin artifacts
|
||||||
|
run: |
|
||||||
|
mkdir -p target/bundled
|
||||||
|
# CLAP: single .so renamed to .clap
|
||||||
|
cp target/aarch64-unknown-linux-gnu/release/libcagire_plugins.so target/bundled/cagire-plugins.clap
|
||||||
|
# VST3: correct directory structure
|
||||||
|
mkdir -p "target/bundled/cagire-plugins.vst3/Contents/aarch64-linux"
|
||||||
|
cp target/aarch64-unknown-linux-gnu/release/libcagire_plugins.so "target/bundled/cagire-plugins.vst3/Contents/aarch64-linux/cagire-plugins.so"
|
||||||
|
|
||||||
|
mkdir -p staging/clap staging/vst3
|
||||||
|
cp -R target/bundled/cagire-plugins.clap staging/clap/
|
||||||
|
cp -R target/bundled/cagire-plugins.vst3 staging/vst3/
|
||||||
|
|
||||||
|
- name: Upload CLAP artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: plugins-linux-aarch64-clap
|
||||||
|
path: staging/clap/
|
||||||
|
|
||||||
|
- name: Upload VST3 artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: plugins-linux-aarch64-vst3
|
||||||
|
path: staging/vst3/
|
||||||
59
.github/workflows/build-plugins-windows.yml
vendored
Normal file
59
.github/workflows/build-plugins-windows.yml
vendored
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
name: Build Plugins Windows
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: windows-latest
|
||||||
|
timeout-minutes: 30
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Install Rust toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
targets: x86_64-pc-windows-msvc
|
||||||
|
|
||||||
|
- name: Cache Rust dependencies
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
key: x86_64-pc-windows-msvc-plugins
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
|
||||||
|
echo "C:\Program Files\CMake\bin" >> $env:GITHUB_PATH
|
||||||
|
|
||||||
|
- name: Build plugins
|
||||||
|
run: cargo xtask bundle cagire-plugins --release --target x86_64-pc-windows-msvc
|
||||||
|
|
||||||
|
- name: Prepare plugin artifacts
|
||||||
|
run: |
|
||||||
|
mkdir -p staging/clap staging/vst3
|
||||||
|
cp -R target/bundled/cagire-plugins.clap staging/clap/
|
||||||
|
cp -R target/bundled/cagire-plugins.vst3 staging/vst3/
|
||||||
|
|
||||||
|
- name: Upload CLAP artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: plugins-windows-x86_64-clap
|
||||||
|
path: staging/clap/
|
||||||
|
|
||||||
|
- name: Upload VST3 artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: plugins-windows-x86_64-vst3
|
||||||
|
path: staging/vst3/
|
||||||
18
.github/workflows/build-plugins.yml
vendored
Normal file
18
.github/workflows/build-plugins.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
name: Build Plugins
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
linux:
|
||||||
|
uses: ./.github/workflows/build-plugins-linux.yml
|
||||||
|
|
||||||
|
macos:
|
||||||
|
uses: ./.github/workflows/build-plugins-macos.yml
|
||||||
|
|
||||||
|
windows:
|
||||||
|
uses: ./.github/workflows/build-plugins-windows.yml
|
||||||
|
|
||||||
|
rpi:
|
||||||
|
uses: ./.github/workflows/build-plugins-rpi.yml
|
||||||
Reference in New Issue
Block a user