Giter Club home page Giter Club logo

dpf-cmake-action's Introduction

This repository contains a GitHub Action specialized for building DPF-based audio plugins that use CMake as their build system.

It supports:

  • building Linux, macOS and Windows in various architectures
  • perform plugin validation for all formats supported by DPF, including run-time memory checks
  • upload "nightly" artifact archives for each build
  • upload release archives

Template setup

The latest recommended setup is:

jobs:
  linux:
    strategy:
      matrix:
        target: [linux-arm64, linux-armhf, linux-i686, linux-riscv64, linux-x86_64]
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v3
        with:
          submodules: recursive
      - uses: distrho/dpf-cmake-action@v1
        with:
          target: ${{ matrix.target }}

  macos:
    strategy:
      matrix:
        target: [macos-intel, macos-universal]
    runs-on: macos-11
    steps:
      - uses: actions/checkout@v3
        with:
          submodules: recursive
      - uses: distrho/dpf-cmake-action@v1
        with:
          target: ${{ matrix.target }}

  windows:
    strategy:
      matrix:
        target: [win32, win64]
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v3
        with:
          submodules: recursive
      - uses: distrho/dpf-cmake-action@v1
        with:
          target: ${{ matrix.target }}

  pluginval:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v3
        with:
          submodules: recursive
      - uses: distrho/dpf-cmake-action@v1
        with:
          target: pluginval

Documentation

The table below contains all possible properties for use with distrho/dpf-cmake-action@v1 action.

Property Required? Description
target Yes The target platform and architecture to build for
lto No Whether to enable Link-Time-Optimizations, defaults to no
dpf_path No Where DPF is located within your repo, defaults to "./dpf"
pawpaw No Whether to use PawPaw to install and setup extra libraries, defaults to no
release No Whether to automatically upload releases, defaults to yes

The table below contains all possible targets and supported runners.

Target Aliases Allowed runners
linux-arm64 ubuntu-20.04, ubuntu-22.04
linux-armhf ubuntu-20.04, ubuntu-22.04
linux-i686 linux-i386 ubuntu-20.04, ubuntu-22.04
linux-riscv64 ubuntu-20.04, ubuntu-22.04
linux-x86_64 linux ubuntu-20.04, ubuntu-22.04
macos-intel macos-11, macos-12
macos-universal macos macos-11, macos-12
macos-10.15 macos-universal-10.15 macos-11, macos-12
win32 ubuntu-20.04, ubuntu-22.04
win64 ubuntu-20.04, ubuntu-22.04
pluginval plugin-validation ubuntu-20.04, ubuntu-22.04

Notes:

  • macos-intel uses 10.8 as minimum version
  • macos-universal uses 10.12 as minimum version
  • Windows builds use Ubuntu runners in cross-compilation instead of Windows ones

Changelog

1

Initial release

Future Plans

  • Set up MOD Audio builds

dpf-cmake-action's People

Contributors

falktx avatar simon-l avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.