Fix sf2 volume control, note release, and sparse-bank patch fallback (#295) #366
Workflow file for this run
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: [master] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| config: | |
| - { | |
| os: macos-latest, | |
| c: "clang", | |
| cmake_opts: "-DWANT_PLAYER=ON -DWANT_STATIC=ON -DWANT_COREAUDIO=ON" | |
| } | |
| - { | |
| os: ubuntu-latest, | |
| c: "clang", | |
| cmake_opts: "-DWANT_PLAYER=ON -DWANT_STATIC=ON -DWANT_OPENAL=ON -DWANT_ALSA=ON -DWANT_OSS=ON" | |
| } | |
| - { | |
| os: ubuntu-latest, | |
| c: "gcc", | |
| cmake_opts: "-DWANT_PLAYER=ON -DWANT_STATIC=ON -DWANT_OPENAL=ON -DWANT_ALSA=ON -DWANT_OSS=ON" | |
| } | |
| - { | |
| os: windows-latest, | |
| c: "cl", | |
| cmake_opts: "-DWANT_PLAYER=ON -DWANT_STATIC=ON -DWANT_WINMM=ON" | |
| } | |
| runs-on: ${{ matrix.config.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies (Linux) | |
| if: matrix.config.os == 'ubuntu-latest' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libasound2-dev libopenal-dev | |
| - name: Build with ${{ matrix.config.os }} / ${{ matrix.config.c }} | |
| env: | |
| CC: ${{ matrix.config.c }} | |
| run: | | |
| cmake -B build ${{ matrix.config.cmake_opts }} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=build/out | |
| cmake --build build -j2 --config Release | |
| ctest --test-dir build --output-on-failure -C Release | |
| cmake --install build | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: wildmidi-${{ matrix.config.os }}-${{ matrix.config.c }} | |
| path: build/out/ | |
| retention-days: 14 |