Add per-program time signature to MIDI Set List #200
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 | |
| on: | |
| push: | |
| branches: [ main ] | |
| <<: &ci_paths | |
| paths-ignore: | |
| - 'deps/**' | |
| paths: | |
| - 'src/**' | |
| - 'include/**' | |
| - '**/*.cmake' | |
| - 'CMakeLists.txt' | |
| - '**/CMakeLists.txt' | |
| - '.gitmodules' | |
| - '.github/workflows/build.yml' | |
| pull_request: | |
| branches: [ main ] | |
| <<: *ci_paths | |
| workflow_dispatch: | |
| jobs: | |
| build-and-test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, macos-latest, windows-2022] | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Cache apt packages (Linux) | |
| if: runner.os == 'Linux' | |
| uses: actions/cache@v4 | |
| with: | |
| path: /var/cache/apt/archives | |
| key: ${{ runner.os }}-apt-${{ hashFiles('.github/workflows/build.yml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-apt- | |
| - name: Install dependencies (Linux) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential \ | |
| cmake \ | |
| ninja-build \ | |
| libasound2-dev \ | |
| libjack-jackd2-dev \ | |
| ladspa-sdk \ | |
| libcurl4-openssl-dev \ | |
| libfontconfig1-dev \ | |
| libfreetype6-dev \ | |
| libx11-dev \ | |
| libxcomposite-dev \ | |
| libxcursor-dev \ | |
| libxext-dev \ | |
| libxinerama-dev \ | |
| libxrandr-dev \ | |
| libxrender-dev \ | |
| libglu1-mesa-dev \ | |
| mesa-common-dev | |
| - name: Setup Boost (Linux) | |
| if: runner.os == 'Linux' | |
| id: install-boost-linux | |
| uses: MarkusJx/install-boost@v2.4.5 | |
| with: | |
| boost_version: 1.83.0 | |
| platform_version: 22.04 | |
| toolset: gcc | |
| - name: Cache Homebrew (macOS) | |
| if: runner.os == 'macOS' | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/Library/Caches/Homebrew | |
| /usr/local/Cellar | |
| key: ${{ runner.os }}-brew-${{ hashFiles('.github/workflows/build.yml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-brew- | |
| - name: Install dependencies (macOS) | |
| if: runner.os == 'macOS' | |
| run: | | |
| brew install cmake ninja | |
| - name: Setup Boost (macOS) | |
| if: runner.os == 'macOS' | |
| id: install-boost-macos | |
| uses: MarkusJx/install-boost@v2.4.5 | |
| with: | |
| boost_version: 1.83.0 | |
| platform_version: 11 | |
| toolset: clang | |
| - name: Install Boost headers (Windows) | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| $boost_ver = "1.83.0" | |
| $boost_dir = "boost_$($boost_ver -replace '\.','_')" | |
| $url = "https://archives.boost.io/release/$boost_ver/source/${boost_dir}.zip" | |
| Invoke-WebRequest -Uri $url -OutFile boost.zip | |
| New-Item -ItemType Directory -Force -Path C:\local | |
| Expand-Archive -Path boost.zip -DestinationPath C:\local | |
| echo "BOOST_ROOT=C:\local\$boost_dir" >> $env:GITHUB_ENV | |
| - name: Setup MSVC environment (Windows) | |
| if: runner.os == 'Windows' | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: amd64 | |
| - name: Setup ccache | |
| uses: hendrikmuhs/ccache-action@v1.2 | |
| with: | |
| key: ${{ matrix.os }}-ccache-${{ github.sha }} | |
| restore-keys: | | |
| ${{ matrix.os }}-ccache- | |
| - name: Configure CMake (Windows) | |
| if: runner.os == 'Windows' | |
| run: | | |
| cmake -B build -G Ninja ` | |
| -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl ` | |
| -DCMAKE_BUILD_TYPE=Release ` | |
| -DELEMENT_ENABLE_ASIO=ON ` | |
| -DELEMENT_ENABLE_UPDATER=ON ` | |
| -DELEMENT_BUILD_PLUGINS=ON | |
| - name: Configure CMake (Unix) | |
| if: runner.os != 'Windows' | |
| run: | | |
| cmake -B build -G Ninja \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DELEMENT_ENABLE_UPDATER=${{ runner.os == 'macOS' && 'ON' || 'OFF' }} \ | |
| -DELEMENT_BUILD_PLUGINS=ON | |
| env: | |
| BOOST_ROOT: ${{ steps.install-boost-linux.outputs.BOOST_ROOT || steps.install-boost-macos.outputs.BOOST_ROOT }} | |
| - name: Build | |
| run: cmake --build build --config Release | |
| - name: Run tests | |
| run: ctest --test-dir build --output-on-failure |