diff --git a/.azure/azure-pipelines-mac.yml b/.azure/azure-pipelines-mac.yml index 7cb446800..5665acef1 100644 --- a/.azure/azure-pipelines-mac.yml +++ b/.azure/azure-pipelines-mac.yml @@ -47,9 +47,14 @@ jobs: displayName: 'Compile fluidsynth' - script: | set -ex - cd build || exit -1 - make -j3 check || exit -1 + cd build + make -j3 check displayName: 'Execute Unittests' + - script: | + set -ex + cd build + make -j3 demo + displayName: 'Compile demos' - script: | set -ex cd build diff --git a/.azure/azure-pipelines-vcpkg.yml b/.azure/azure-pipelines-vcpkg.yml index 5af3e227c..b730d4d5d 100644 --- a/.azure/azure-pipelines-vcpkg.yml +++ b/.azure/azure-pipelines-vcpkg.yml @@ -126,6 +126,10 @@ jobs: cmake --build build --config $(configuration) --target check --parallel 3 displayName: 'Execute Unittests' condition: and(succeeded(), and(ne(variables['platform'], 'arm'), ne(variables['platform'], 'arm64'))) + - bash: | + set -ex + cmake --build build --config $(configuration) --target demo --parallel 3 + displayName: 'Compile demos' - script: | @ECHO ON cd build diff --git a/.azure/azure-pipelines-win.yml b/.azure/azure-pipelines-win.yml index 5aa747271..dc7b4f16e 100644 --- a/.azure/azure-pipelines-win.yml +++ b/.azure/azure-pipelines-win.yml @@ -73,6 +73,12 @@ jobs: cd build || exit -1 cmake --build . --config Release --target check || exit -1 displayName: 'Execute Unittests' + - script: | + @ECHO ON + SET "PATH=d:\deps\bin;%PATH%" + cd build || exit -1 + cmake --build . --config Release --target demo || exit -1 + displayName: 'Compile demos' - script: | @ECHO ON cd build @@ -140,6 +146,12 @@ jobs: cd build || exit -1 cmake --build . --config $(CMAKE_CONFIG) --target check || exit -1 displayName: 'Execute Unittests' + - script: | + @ECHO ON + SET "PATH=d:\deps\bin;%PATH%" + cd build || exit -1 + cmake --build . --config $(CMAKE_CONFIG) --target demo || exit -1 + displayName: 'Compile demos' - job: WindowsMinGW variables: @@ -208,6 +220,15 @@ jobs: cd build || exit -1 mingw32-make.exe -j4 check || exit -1 displayName: 'Execute Unittests' + - script: | + @ECHO ON + SET "PATH=d:\deps\bin;%PATH%" + REM remove that path from PATH to make sure sh.exe is not found (cmake will complain otherwise) + set PATH=%PATH:C:\Program Files\Git\bin;=% + set PATH=%PATH:C:\Program Files\Git\usr\bin;=% + cd build || exit -1 + mingw32-make.exe -j4 demo || exit -1 + displayName: 'Compile demos' - script: | @ECHO ON cd build diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index f9fd4286e..9d7fc5fab 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -93,6 +93,11 @@ jobs: # Execute tests defined by the CMake configuration. run: make -j`nproc` check + - name: Demo + working-directory: ${{github.workspace}}/build + shell: bash + run: make -j`nproc` demo + - name: Install working-directory: ${{github.workspace}}/build run: make install