v0.3.2 #99
This file contains hidden or 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: Build Examples | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: ${{ matrix.platform }} / ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| platform: [pd, chuck, au, clap, vst3, lv2, sc, vcvrack, daisy] | |
| exclude: | |
| # AU: macOS-only (system AudioToolbox framework) | |
| - { os: ubuntu-latest, platform: au } | |
| - { os: windows-latest, platform: au } | |
| # ChucK: make-based, no Windows target | |
| - { os: windows-latest, platform: chuck } | |
| # PD: pd-lib-builder requires make + gcc | |
| - { os: windows-latest, platform: pd } | |
| # LV2: macOS / Linux only | |
| - { os: windows-latest, platform: lv2 } | |
| # VCV Rack: make-based build | |
| - { os: windows-latest, platform: vcvrack } | |
| # Daisy: ARM cross-compiler + make, Linux CI only | |
| - { os: windows-latest, platform: daisy } | |
| - { os: macos-latest, platform: daisy } | |
| env: | |
| GEN_DSP_CACHE_DIR: ${{ github.workspace }}/build/.fetchcontent_cache | |
| GIT_TERMINAL_PROMPT: "0" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v4 | |
| with: | |
| python-version: "3.12" | |
| enable-cache: true | |
| - uses: actions/cache@v4 | |
| with: | |
| path: build/.fetchcontent_cache | |
| key: fetchcontent-${{ matrix.platform }}-${{ runner.os }}-v1 | |
| - name: Install ARM cross-compiler | |
| if: matrix.platform == 'daisy' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y gcc-arm-none-eabi libnewlib-arm-none-eabi | |
| - name: Install PureData headers | |
| if: matrix.platform == 'pd' | |
| shell: bash | |
| run: | | |
| mkdir -p "${{ github.workspace }}/pd-headers" | |
| curl -sL https://raw.githubusercontent.com/pure-data/pure-data/master/src/m_pd.h \ | |
| -o "${{ github.workspace }}/pd-headers/m_pd.h" | |
| echo "PDINCLUDEDIR=${{ github.workspace }}/pd-headers" >> "$GITHUB_ENV" | |
| - run: uv sync --group dev | |
| - name: Generate project | |
| shell: bash | |
| run: | | |
| uv run gen-dsp tests/fixtures/gigaverb/gen \ | |
| -n gigaverb \ | |
| -p ${{ matrix.platform }} \ | |
| -o build/gigaverb \ | |
| --no-build | |
| - name: Build project | |
| shell: bash | |
| run: uv run gen-dsp build build/gigaverb -p ${{ matrix.platform }} -v |