edit 'src/StoneyVCV/ComponentLibrary/Widget.cpp' - add missing ifdef … #825
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ubuntu | |
on: | |
# Runs on all pushes | |
push: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# When pushing new commits, cancel any running builds on that branch | |
concurrency: | |
group: ubuntu-latest-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
DISPLAY: :0 | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CMAKE_BUILD_PARALLEL_LEVEL: 3 | |
CMAKE_INSTALL_PARALLEL_LEVEL: 3 | |
VCPKG_MAX_CONCURRENCY: 3 | |
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" | |
RACK_SDK_VERSION_MAJOR: 2 | |
RACK_SDK_VERSION: 2.5.2 | |
RACK_SDK_PLATFORM: "lin-x64" | |
# STONEYVCV_VERSION_MAJOR: ${{ vars.STONEYVCV_VERSION_MAJOR }} | |
# STONEYVCV_VERSION_MINOR: ${{ vars.STONEYVCV_VERSION_MINOR }} | |
# STONEYVCV_VERSION_PATCH: ${{ vars.STONEYVCV_VERSION_PATCH }} | |
# STONEYVCV_VERSION: ${{ vars.STONEYVCV_VERSION_MAJOR }}.${{ vars.STONEYVCV_VERSION_MINOR }}.${{ vars.STONEYVCV_VERSION_PATCH }} | |
jobs: | |
ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
# Requirements | |
# https://vcvrack.com/manual/Building#Setting-up-your-development-environment | |
- name: Install VCV's Linux Deps | |
shell: bash | |
run: | | |
sudo apt-get update | |
sudo apt install coreutils unzip git gdb curl cmake libx11-dev libglu1-mesa-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev zlib1g-dev libasound2-dev libgtk2.0-dev libgtk-3-dev libjack-jackd2-dev jq zstd libpulse-dev pkg-config ninja-build ccache tree | |
- name: checkout StoneyVCV | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: get Rack Executable | |
shell: bash | |
run: | | |
curl https://vcvrack.com/downloads/RackFree-${{env.RACK_SDK_VERSION}}-${{env.RACK_SDK_PLATFORM}}.zip -o ${{ github.workspace }}/dep/RackFree-${{env.RACK_SDK_VERSION}}-${{env.RACK_SDK_PLATFORM}}.zip | |
unzip -q ${{ github.workspace }}/dep/RackFree-${{env.RACK_SDK_VERSION}}-${{env.RACK_SDK_PLATFORM}}.zip -d ${{ github.workspace }}/dep | |
# CI helpers | |
- name: Enable GitHub Actions Cache backend | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | |
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | |
# Output package name (don't do this at home) | |
- name: make version | |
shell: bash | |
run: | | |
echo STONEYVCV_VERSION_MAJOR=${{ env.RACK_SDK_VERSION_MAJOR }} >> $GITHUB_ENV | |
echo STONEYVCV_VERSION_MINOR=0 >> $GITHUB_ENV | |
echo STONEYVCV_VERSION_PATCH=$(git rev-list HEAD | wc -l | awk '{$1=$1};1') >> $GITHUB_ENV | |
echo STONEYVCV_VERSION_TWEAK=$(git rev-parse HEAD | awk '{$1=$1};1') >> $GITHUB_ENV | |
echo STONEYVCV_VERSION_BUILD=$(git rev-parse --short HEAD | awk '{$1=$1};1') >> $GITHUB_ENV | |
echo STONEYVCV_VERSION_PACKAGE=${{ env.RACK_SDK_VERSION_MAJOR }}.0.$(git rev-list HEAD | wc -l | awk '{$1=$1};1') >> $GITHUB_ENV | |
echo STONEYVCV_VERSION=${{ env.RACK_SDK_VERSION_MAJOR }}.0.$(git rev-list HEAD | wc -l | awk '{$1=$1};1') >> $GITHUB_ENV | |
echo STONEYVCV_GIT_BRANCH=$(git rev-parse --abbrev-ref --symbolic-full-name HEAD | awk '{$1=$1};1') >> $GITHUB_ENV | |
- name: make dep | |
shell: bash | |
run: make dep -j 3 | |
# Developer workflow | |
- name: make workflow | |
shell: bash | |
run: make workflow -j 3 | |
# Deployment workflow | |
- name: make | |
shell: bash | |
run: make -j 3 | |
- name: make dist | |
shell: bash | |
run: make dist -j 3 | |
- name: make install | |
shell: bash | |
run: make install -j 3 | |
# List all artefact directories | |
- name: tree | |
shell: bash | |
run: | | |
tree ${{ github.workspace }}/dist | |
tree ${{ github.workspace }}/install | |
# Upload build artefacts | |
- name: upload vcvplugin | |
uses: actions/upload-artifact@v4 | |
with: | |
name: StoneyDSP-StoneyVCV-${{ env.STONEYVCV_VERSION_PACKAGE }}-lin-x64.vcvplugin | |
path: ${{ github.workspace }}/dist/StoneyDSP-StoneyVCV-${{ env.STONEYVCV_VERSION_PACKAGE }}-lin-x64.vcvplugin | |
if-no-files-found: error | |
- name: upload .sh | |
uses: actions/upload-artifact@v4 | |
with: | |
name: StoneyVCV-${{ env.STONEYVCV_VERSION_PACKAGE }}-Linux.sh | |
path: ${{ github.workspace }}/install/StoneyVCV-${{ env.STONEYVCV_VERSION_PACKAGE }}-Linux.sh | |
if-no-files-found: error | |
- name: upload .tar.gz | |
uses: actions/upload-artifact@v4 | |
with: | |
name: StoneyVCV-${{ env.STONEYVCV_VERSION_PACKAGE }}-Linux.tar.gz | |
path: ${{ github.workspace }}/install/StoneyVCV-${{ env.STONEYVCV_VERSION_PACKAGE }}-Linux.tar.gz | |
if-no-files-found: error | |
- name: upload .tar.Z | |
uses: actions/upload-artifact@v4 | |
with: | |
name: StoneyVCV-${{ env.STONEYVCV_VERSION_PACKAGE }}-Linux.tar.Z | |
path: ${{ github.workspace }}/install/StoneyVCV-${{ env.STONEYVCV_VERSION_PACKAGE }}-Linux.tar.Z | |
if-no-files-found: error | |
# Download build artefacts | |
- name: download | |
uses: actions/download-artifact@v4 |