diff --git a/.github/workflows/win-msvc.yml b/.github/workflows/win-msvc.yml index b3c100b..246c8ec 100644 --- a/.github/workflows/win-msvc.yml +++ b/.github/workflows/win-msvc.yml @@ -53,6 +53,8 @@ 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' run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} @@ -79,6 +81,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..ee89c1b 100644 --- a/.github/workflows/win-msys2.yml +++ b/.github/workflows/win-msys2.yml @@ -71,6 +71,8 @@ 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' run: cmake --build build --config ${{env.BUILD_TYPE}} @@ -100,6 +102,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") 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