60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
name: Build Plugins Windows
|
|
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
timeout-minutes: 60
|
|
|
|
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/
|