Skip to content

Update build.yml

Update build.yml #19

Workflow file for this run

name: Build VCV Rack Plugin

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

(Line: 85, Col: 16): Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.os == 'Windows' && 'msys2 {0}' || 'bash', (Line: 93, Col: 16): Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.os == 'Windows' && 'msys2 {0}' || 'bash', (Line: 101, Col: 16): Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.os == 'Windows' && 'msys2 {0}' || 'bash', (Line: 109, Col: 16): Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.os == 'Windows' && 'msys2 {0}' || 'bash'
on:
push:
branches: [ main ]
tags:
- "v*"
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
# ----------------------------
# Linux dependencies
# ----------------------------
- name: Install Linux build dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
libgl1-mesa-dev \
xorg-dev \
libx11-dev \
libxrandr-dev \
libxinerama-dev \
libxcursor-dev \
libxi-dev \
libjack-jackd2-dev \
libasound2-dev \
libpulse-dev
# ----------------------------
# macOS dependencies
# ----------------------------
- name: Install macOS build dependencies
if: runner.os == 'macOS'
run: |
brew update
brew install autoconf automake libtool pkg-config
# ----------------------------
# Windows (MSYS2 / MINGW64)
# ----------------------------
- name: Set up MSYS2
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >
base-devel
git
wget
unzip
tar
jq
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-cmake
mingw-w64-x86_64-ninja
mingw-w64-x86_64-pkgconf
mingw-w64-x86_64-autotools
mingw-w64-x86_64-libtool
# ----------------------------
# Clone Rack
# ----------------------------
- name: Clone Rack
shell: ${{ runner.os == 'Windows' && 'msys2 {0}' || 'bash' }}
run: |
git clone --recursive https://github.com/VCVRack/Rack.git rack
# ----------------------------
# Build Rack dependencies
# ----------------------------
- name: Build Rack dependencies
shell: ${{ runner.os == 'Windows' && 'msys2 {0}' || 'bash' }}
run: |
make -C rack dep
# ----------------------------
# Build Rack (libRack)
# ----------------------------
- name: Build Rack
shell: ${{ runner.os == 'Windows' && 'msys2 {0}' || 'bash' }}
run: |
make -C rack
# ----------------------------
# Build plugin
# ----------------------------
- name: Build plugin
shell: ${{ runner.os == 'Windows' && 'msys2 {0}' || 'bash' }}
run: |
export RACK_DIR=$PWD/rack
make