diff --git a/CI/Linux/linux-build.yml b/CI/Linux/linux-build.yml index e2747beb9..195fac7e9 100644 --- a/CI/Linux/linux-build.yml +++ b/CI/Linux/linux-build.yml @@ -3,6 +3,7 @@ steps: mkdir build-release cd build-release if [ -z $(which cmake) ]; then cmake3 -DCMAKE_BUILD_TYPE=Release ..; else cmake -DCMAKE_BUILD_TYPE=Release ..; fi + . ./version make -j condition: eq(variables['packager'],'deb') displayName: 'Build Release deb' @@ -16,6 +17,7 @@ steps: cmake3 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=$(pwd)/rpm/BUILDROOT/usr ..; else cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=$(pwd)/rpm/BUILDROOT/usr ..; fi + . ./version make -j condition: eq(variables['packager'],'rpm') displayName: 'Build Release rpm' @@ -27,6 +29,7 @@ steps: cd build-ent export SYNERGY_ENTERPRISE=1 if [ -z $(which cmake) ]; then cmake3 -DCMAKE_BUILD_TYPE=Release -DSYNERGY_ENTERPRISE=ON ..; else cmake -DCMAKE_BUILD_TYPE=Release -DSYNERGY_ENTERPRISE=ON ..; fi + . ./version make -j displayName: 'Build enterprise' condition: eq(variables['packager'],'deb') @@ -40,6 +43,7 @@ steps: cmake3 -DCMAKE_BUILD_TYPE=Release -DSYNERGY_ENTERPRISE=ON -DCMAKE_INSTALL_PREFIX:PATH=$(pwd)/rpm/BUILDROOT/usr ..; else cmake -DCMAKE_BUILD_TYPE=Release -DSYNERGY_ENTERPRISE=ON -DCMAKE_INSTALL_PREFIX:PATH=$(pwd)/rpm/BUILDROOT/usr ..; fi + . ./version make -j condition: eq(variables['packager'],'rpm') displayName: 'Build enterprise rpm' diff --git a/CI/MacOS/mac-build.yml b/CI/MacOS/mac-build.yml index 0a77ac939..fba8f972f 100644 --- a/CI/MacOS/mac-build.yml +++ b/CI/MacOS/mac-build.yml @@ -28,6 +28,8 @@ steps: cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=$(version) -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release .. displayName: 'Cmake standard' condition: eq(variables['buildType'], 'standard') + env: + GIT_COMMIT: $(Build.SourceVersion) - task: CmdLine@2 inputs: @@ -39,14 +41,19 @@ steps: cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.12 -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -DSYNERGY_ENTERPRISE=ON .. displayName: 'Cmake enterprise' condition: eq(variables['buildType'], 'enterprise') + env: + GIT_COMMIT: $(Build.SourceVersion) - task: CmdLine@2 inputs: script: | cd build + . ./version make -j make install/strip displayName: 'Compiling' + env: + GIT_COMMIT: $(Build.SourceVersion) - task: CmdLine@2 inputs: diff --git a/CI/Windows/windows-build.yml b/CI/Windows/windows-build.yml index 2cad4870c..01591abe4 100644 --- a/CI/Windows/windows-build.yml +++ b/CI/Windows/windows-build.yml @@ -57,14 +57,17 @@ steps: BONJOUR_SDK_DIR: $(BONJOUR_SDK_DIR) QT_PATH: $(QT_BIN_PATH) MSARCH: 'x64' + GIT_COMMIT: $(Build.SourceVersion) - script: | call "%ENV_BAT%" -arch=x64 cd build64 + call version msbuild synergy-core.sln /p:Platform="x64" /p:Configuration=Release displayName: 'Compiling x64' env: ENV_BAT: $(ENV_BAT) + GIT_COMMIT: $(Build.SourceVersion) - script: | call "%ENV_BAT%" -arch=x86 @@ -82,14 +85,17 @@ steps: BONJOUR_SDK_DIR: $(BONJOUR_SDK_DIR) QT_PATH: $(QT_BIN_PATH_32) MSARCH: 'Win32' + GIT_COMMIT: $(Build.SourceVersion) - script: | call "%ENV_BAT%" -arch=x86 cd build32 + call version msbuild synergy-core.sln /p:Platform="Win32" /p:Configuration=Release displayName: 'Compiling x32' env: ENV_BAT: $(ENV_BAT) + GIT_COMMIT: $(Build.SourceVersion) - task: codesigning@2 inputs: