mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-11 21:31:18 +00:00
Speed up Windows CI a bit (#883)
This commit is contained in:
parent
90a6c52e1c
commit
6d78ebe154
2 changed files with 12 additions and 12 deletions
|
@ -29,8 +29,8 @@ jobs:
|
||||||
@ECHO ON
|
@ECHO ON
|
||||||
echo $(generator)
|
echo $(generator)
|
||||||
echo $(toolset)
|
echo $(toolset)
|
||||||
choco upgrade ninja -y
|
REM choco upgrade ninja -y
|
||||||
ninja --version
|
REM ninja --version
|
||||||
cmake --version
|
cmake --version
|
||||||
REM manually update vcpkg
|
REM manually update vcpkg
|
||||||
REM cd "$(VCPKG_DIR)" || exit -1
|
REM cd "$(VCPKG_DIR)" || exit -1
|
||||||
|
@ -55,14 +55,14 @@ jobs:
|
||||||
@ECHO ON
|
@ECHO ON
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -Werror=dev -G "$(generator)" -A "$(cmake_platform)" -T "$(toolset)" -Denable-pkgconfig=0 -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_INSTALL_PREFIX=$(Build.ArtifactStagingDirectory) -DCMAKE_VERBOSE_MAKEFILE=1 -DNO_GUI=1 .. || exit -1
|
cmake -Werror=dev -G "$(generator)" -A "$(cmake_platform)" -T "$(toolset)" -Denable-pkgconfig=0 -Denable-jack=0 -Denable-pulseaudio=0 -Denable-ladspa=0 -Denable-dbus=0 -Denable-readline=0 -Denable-sdl2=0 -Denable-libinstpatch=0 -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_INSTALL_PREFIX=$(Build.ArtifactStagingDirectory) -DCMAKE_VERBOSE_MAKEFILE=1 -DNO_GUI=1 .. || exit -1
|
||||||
REM build libfluidsynth and fluidsynth exec
|
REM build libfluidsynth and fluidsynth exec
|
||||||
cmake --build . --config $(configuration) || exit -1
|
cmake --build . --config $(configuration) --parallel 3 || exit -1
|
||||||
displayName: 'Compile fluidsynth'
|
displayName: 'Compile fluidsynth'
|
||||||
- script: |
|
- script: |
|
||||||
@ECHO ON
|
@ECHO ON
|
||||||
REM build and exec unittests, unless when cross-compiling
|
REM build and exec unittests, unless when cross-compiling
|
||||||
if not "%platform%"=="ARM" ( cmake --build build --config $(configuration) --target check )
|
if not "%platform%"=="ARM" ( cmake --build build --config $(configuration) --target check --parallel 3 )
|
||||||
displayName: 'Execute Unittests'
|
displayName: 'Execute Unittests'
|
||||||
- script: |
|
- script: |
|
||||||
@ECHO ON
|
@ECHO ON
|
||||||
|
|
|
@ -54,8 +54,8 @@ jobs:
|
||||||
SET "PATH=d:\deps\bin;%PATH%"
|
SET "PATH=d:\deps\bin;%PATH%"
|
||||||
pkg-config --list-all
|
pkg-config --list-all
|
||||||
mkdir build && cd build || exit -1
|
mkdir build && cd build || exit -1
|
||||||
cmake -Werror=dev -A $(platform) -T $(toolset) -DCMAKE_INSTALL_PREFIX=$(Build.ArtifactStagingDirectory) -Denable-readline=0 -Denable-floats=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_VERBOSE_MAKEFILE=1 -DNO_GUI=1 -Dwindows-version=0x0501 .. || exit -1
|
cmake -Werror=dev -A $(platform) -T $(toolset) -DCMAKE_INSTALL_PREFIX=$(Build.ArtifactStagingDirectory) -Denable-readline=0 -Denable-floats=1 -Denable-jack=0 -Denable-sdl2=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_VERBOSE_MAKEFILE=1 -DNO_GUI=1 -Dwindows-version=0x0501 .. || exit -1
|
||||||
cmake --build . --config Release || exit -1
|
cmake --build . --config Release --parallel 3 || exit -1
|
||||||
displayName: 'Compile fluidsynth'
|
displayName: 'Compile fluidsynth'
|
||||||
- script: |
|
- script: |
|
||||||
@ECHO ON
|
@ECHO ON
|
||||||
|
@ -99,7 +99,7 @@ jobs:
|
||||||
CMAKE_FLAGS: -DBUILD_SHARED_LIBS=0
|
CMAKE_FLAGS: -DBUILD_SHARED_LIBS=0
|
||||||
CMAKE_CONFIG: Release
|
CMAKE_CONFIG: Release
|
||||||
minimal:
|
minimal:
|
||||||
CMAKE_FLAGS: -Denable-ipv6=0 -Denable-network=0 -Denable-aufile=0 -Denable-dbus=0 -Denable-threads=0 -Denable-winmidi=0 -Denable-waveout=0 -Denable-dsound=0 -Denable-libsndfile=0 -Denable-floats=1
|
CMAKE_FLAGS: -Denable-ipv6=0 -Denable-network=0 -Denable-aufile=0 -Denable-threads=0 -Denable-winmidi=0 -Denable-waveout=0 -Denable-dsound=0 -Denable-libsndfile=0 -Denable-floats=1
|
||||||
CMAKE_CONFIG: Release
|
CMAKE_CONFIG: Release
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'windows-2019'
|
vmImage: 'windows-2019'
|
||||||
|
@ -121,8 +121,8 @@ jobs:
|
||||||
@ECHO ON
|
@ECHO ON
|
||||||
SET "PATH=d:\deps\bin;%PATH%"
|
SET "PATH=d:\deps\bin;%PATH%"
|
||||||
mkdir build && cd build || exit -1
|
mkdir build && cd build || exit -1
|
||||||
cmake -Werror=dev -A x64 -T $(toolset) -DCMAKE_BUILD_TYPE=$(CMAKE_CONFIG) -DCMAKE_VERBOSE_MAKEFILE=1 $(CMAKE_FLAGS) -DNO_GUI=1 -Dwindows-version=0x0A00 .. || exit -1
|
cmake -Werror=dev -A x64 -T $(toolset) -DCMAKE_BUILD_TYPE=$(CMAKE_CONFIG) -DCMAKE_VERBOSE_MAKEFILE=1 $(CMAKE_FLAGS) -DNO_GUI=1 -Dwindows-version=0x0A00 -Denable-jack=0 -Denable-pulseaudio=0 -Denable-ladspa=0 -Denable-dbus=0 -Denable-readline=0 -Denable-sdl2=0 -Denable-libinstpatch=0 .. || exit -1
|
||||||
cmake --build . --config $(CMAKE_CONFIG) || exit -1
|
cmake --build . --config $(CMAKE_CONFIG) --parallel 3 || exit -1
|
||||||
displayName: 'Compile fluidsynth'
|
displayName: 'Compile fluidsynth'
|
||||||
- script: |
|
- script: |
|
||||||
@ECHO ON
|
@ECHO ON
|
||||||
|
@ -186,8 +186,8 @@ jobs:
|
||||||
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
|
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
|
||||||
pkg-config --list-all
|
pkg-config --list-all
|
||||||
mkdir build && cd build || exit -1
|
mkdir build && cd build || exit -1
|
||||||
cmake -Werror=dev -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=$(Build.ArtifactStagingDirectory) $(CMAKE_FLAGS) -Denable-readline=0 -Denable-floats=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=1 -DNO_GUI=1 .. || exit -1
|
cmake -Werror=dev -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=$(Build.ArtifactStagingDirectory) $(CMAKE_FLAGS) -Denable-readline=0 -Denable-floats=1 -Denable-jack=0 -Denable-pulseaudio=0 -Denable-ladspa=0 -Denable-dbus=0 -Denable-sdl2=0 -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=1 -DNO_GUI=1 .. || exit -1
|
||||||
mingw32-make.exe -j4 all || exit -1
|
mingw32-make.exe -j3 all || exit -1
|
||||||
displayName: 'Compile fluidsynth'
|
displayName: 'Compile fluidsynth'
|
||||||
- script: |
|
- script: |
|
||||||
@ECHO ON
|
@ECHO ON
|
||||||
|
|
Loading…
Reference in a new issue