From d838673f79a9d843cda8d0947f0a0d1372cb53eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20L=C3=B3pez-Cabanillas?= Date: Wed, 11 Feb 2026 18:39:38 +0100 Subject: [PATCH 1/2] avoid hardcoding configuration version --- .github/workflows/win-msvc.yml | 3 ++- .github/workflows/win-msys2.yml | 3 ++- CMakeLists.txt | 7 +++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/win-msvc.yml b/.github/workflows/win-msvc.yml index b3c100b..62d0302 100644 --- a/.github/workflows/win-msvc.yml +++ b/.github/workflows/win-msvc.yml @@ -53,6 +53,7 @@ jobs: -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} -DCPACK_SYSTEM_NAME=${{matrix.arch}} + id: configuration - name: '${{ matrix.icon }} Build' run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} @@ -79,6 +80,6 @@ jobs: uses: actions/upload-artifact@v6 with: name: SonivoxV4-msvc-installer-${{matrix.arch}} - path: ${{github.workspace}}/build/sonivox-4.0.0-${{matrix.arch}}.exe + path: ${{github.workspace}}/build/sonivox-${{steps.configuration.outputs.config_version}}-${{matrix.arch}}.exe retention-days: 90 overwrite: true diff --git a/.github/workflows/win-msys2.yml b/.github/workflows/win-msys2.yml index 07cc85c..e17e148 100644 --- a/.github/workflows/win-msys2.yml +++ b/.github/workflows/win-msys2.yml @@ -71,6 +71,7 @@ jobs: -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} -DDEPENDENCY_DIRS=${{steps.msys2.outputs.msys2-location}}/${{matrix.sys}}/bin -DCPACK_SYSTEM_NAME=${{matrix.sys}} + id: configuration - name: '${{ matrix.icon }} Build' run: cmake --build build --config ${{env.BUILD_TYPE}} @@ -100,6 +101,6 @@ jobs: uses: actions/upload-artifact@v6 with: name: SonivoxV4-msys2-installer-${{matrix.sys}} - path: ${{github.workspace}}/build/sonivox-4.0.0-${{matrix.sys}}.exe + path: ${{github.workspace}}/build/sonivox-${{steps.configuration.outputs.config_version}}-${{matrix.sys}}.exe retention-days: 90 overwrite: true diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ca8890..02ec66b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,6 +92,13 @@ if (SF2_SUPPORT) set(_FLOAT_DCF ON) endif() +if (DEFINED ENV{GITHUB_OUTPUT}) + file(APPEND + "$ENV{GITHUB_OUTPUT}" + "config_version=${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}\n" + ) +endif() + include(GNUInstallDirs) # set(PROJECT_RELEASE_DATE "December 30, 2025") From c129e6bad2e4f8a05836f45f2883c062b1a9edde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20L=C3=B3pez-Cabanillas?= Date: Wed, 11 Feb 2026 20:16:10 +0100 Subject: [PATCH 2/2] Update README --- .github/workflows/win-msvc.yml | 1 + .github/workflows/win-msys2.yml | 1 + README.md | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/win-msvc.yml b/.github/workflows/win-msvc.yml index 62d0302..246c8ec 100644 --- a/.github/workflows/win-msvc.yml +++ b/.github/workflows/win-msvc.yml @@ -53,6 +53,7 @@ jobs: -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} -DCPACK_SYSTEM_NAME=${{matrix.arch}} + -DINSTALL_DEPENDENCIES=ON id: configuration - name: '${{ matrix.icon }} Build' diff --git a/.github/workflows/win-msys2.yml b/.github/workflows/win-msys2.yml index e17e148..ee89c1b 100644 --- a/.github/workflows/win-msys2.yml +++ b/.github/workflows/win-msys2.yml @@ -71,6 +71,7 @@ jobs: -DCMAKE_INSTALL_PREFIX=${{env.INSTALL_LOCATION}} -DDEPENDENCY_DIRS=${{steps.msys2.outputs.msys2-location}}/${{matrix.sys}}/bin -DCPACK_SYSTEM_NAME=${{matrix.sys}} + -DINSTALL_DEPENDENCIES=ON id: configuration - name: '${{ matrix.icon }} Build' diff --git a/README.md b/README.md index 13a4d6a..c77cdd2 100644 --- a/README.md +++ b/README.md @@ -40,11 +40,12 @@ The build system has the following options: * `SF2_SUPPORT`: Enable SF2 support and float DCF. ON by default. * `ZLIB_SUPPORT`: Enable XMF ZLIB Unpacker support. ON by default. * `BUILD_MANPAGE`: Build the manpage of the CLI program. OFF by default. +* `INSTALL_DEPENDENCIES`: Deploy dependency libraries. OFF by default. The synthesizer types options (at least one must be enabled): * `EAS_WT_SYNTH`: Enable WaveTable Synth. ON by default. -* `EAS_FM_SYNTH`: Enable FM Synth. OFF by default. +* `EAS_FM_SYNTH`: Enable FM Synth. ON by default. * `EAS_HYBRID_SYNTH`: Enable Hybrid Synth. OFF by default. Requires both `USE_44KHZ` and `USE_16BITS_SAMPLES` to be OFF. * `MAX_VOICES`: Maximum number of voices. 64 by default. @@ -133,7 +134,7 @@ Example 8: pipe the rendered audio thru the ['mpv' media player](https://mpv.io/ Besides being multiplatform, this supports progress view and better navigation (backed by in-memory cache). -You may replace "ants.mid" by another MIDI or XMF file, like "test/res/testmxmf.mxmf" +You may replace [ants.mid](https://github.com/EmbeddedSynth/sonivox/blob/devel/test/res/ants.mid) by another MIDI or XMF file, like [testmxmf.mxmf](https://github.com/EmbeddedSynth/sonivox/blob/devel/test/res/testmxmf.mxmf) ## Unit tests