Skip to content

Commit

Permalink
Pre-2.0.0 release downgrade of the AppVeyor build @ Qt 5.15.2 build (…
Browse files Browse the repository at this point in the history
…broken on AppVeyor) to Qt 5.9.x - 2.0.0 release Win installer for new Qt will not be build on CI.
  • Loading branch information
dvorka committed Feb 12, 2024
1 parent 78f45b9 commit e48fda6
Showing 1 changed file with 10 additions and 31 deletions.
41 changes: 10 additions & 31 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Stable configuration for MindForger CI:
# - Qt 5.9.9 : 76682b6c
# - Qt 5.15.2:
#

version: 2.0.{build}

Expand All @@ -29,7 +24,7 @@ skip_commits:
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true

image: Visual Studio 2022
image: Visual Studio 2017

#---------------------------------#
# build configuration #
Expand All @@ -47,46 +42,30 @@ cache:

# check https://www.appveyor.com/docs/windows-images-software for updates
install:
# QT used by: MF 2.0.0+ (5.15.2 requires MSVC 2019 @ Visual Studio 2022 or Visual Studio 2019)
- set QT_DIR=C:\Qt\5.15.2\msvc2019_64
# QT used by: MF 1.55.*- (5.9.9 requires MSVC 2017 @ Visual Studio 2017)
# - set QT_DIR=C:\Qt\5.9.9\msvc2017_64
- set QT_DIR=C:\Qt\5.9.9\msvc2017_64
# - set QT_DIR=C:\Qt\5.9.7\msvc2017_64
- set PATH=%PATH%;%QT_DIR%\bin
- set M8R_HOME=%APPVEYOR_BUILD_FOLDER%
- if not exist c:\cache mkdir c:\cache
- if not exist c:\cache\vcredist_x64.exe curl -LfSs -o c:\cache\vcredist_x64.exe https://aka.ms/vs/17/release/vc_redist.x64.exe
- if not exist "C:\Program Files\googletest-distribution" pushd %TEMP% && curl -LfSs -o gtest.zip https://github.com/google/googletest/archive/release-1.8.1.zip && 7z x gtest.zip && cd googletest-release-1.8.1 && mkdir build && cd build && cmake -G "Visual Studio 17 2022" -DCMAKE_CONFIGURATION_TYPES=Debug;Release -Dgtest_build_samples=OFF -Dgtest_build_tests=OFF -Dgmock_build_tests=OFF -Dgtest_force_shared_crt=ON .. && cmake --build . --config Debug -- /m && cmake -DBUILD_TYPE=Debug -P cmake_install.cmake && popd
# on the image vcredist is in C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Redist\MSVC\14.16.27012
- if not exist c:\cache\vcredist_x64.exe curl -LfSs -o c:\cache\vcredist_x64.exe https://aka.ms/vs/15/release/vc_redist.x64.exe
- if not exist "C:\Program Files\googletest-distribution" pushd %TEMP% && curl -LfSs -o gtest.zip https://github.com/google/googletest/archive/release-1.8.1.zip && 7z x gtest.zip && cd googletest-release-1.8.1 && mkdir build && cd build && cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_CONFIGURATION_TYPES=Debug;Release -Dgtest_build_samples=OFF -Dgtest_build_tests=OFF -Dgmock_build_tests=OFF -Dgtest_force_shared_crt=ON .. && cmake --build . --config Debug -- /m && cmake -DBUILD_TYPE=Debug -P cmake_install.cmake && popd

before_build:
- cd "%M8R_HOME%"
- git submodule init
- git submodule update

build_script:
- pushd "%M8R_HOME%\deps\cmark-gfm" && mkdir build && cd build && cmake -G "Visual Studio 17 2022" -DCMAKE_CONFIGURATION_TYPES=Debug;Release -DCMARK_TESTS=OFF -DCMARK_SHARED=OFF .. && cmake --build . --config Release -- /m && cmake --build . --config Debug -- /m && popd
- call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
# - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- pushd "%M8R_HOME%\deps\cmark-gfm" && mkdir build && cd build && cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_CONFIGURATION_TYPES=Debug;Release -DCMARK_TESTS=OFF -DCMARK_SHARED=OFF .. && cmake --build . --config Release -- /m && cmake --build . --config Debug -- /m && popd
- call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- cd "%M8R_HOME%" && qmake -r mindforger.pro "CONFIG+=mfnoccache" && nmake
- echo "BEFORE INSTALLER BUILD"
- windeployqt app\release\mindforger.exe --dir app\release\bin --no-compiler-runtime && "C:\Program Files (x86)\Inno Setup 5\iscc.exe" /Q /DVcRedistPath=c:\cache\vcredist_x64.exe build\windows\installer\mindforger-setup.iss
- echo "AFTER INSTALLER BUILD"
# - if "%APPVEYOR_REPO_BRANCH%" equ "master" appveyor PushArtifact app\release\installer\mindforger-setup.exe
# TODO disabled as artifact not found
# - appveyor PushArtifact app\release\installer\mindforger-setup.exe
- cd
- dir *.exe
- dir app
- dir app\*.exe
- dir app\release
- dir app\release\*.exe
- dir app\release\installer
- dir app\release\installer\*.exe
# end temporary search
# - if "%APPVEYOR_REPO_BRANCH%" equ "master" appveyor PushArtifact app\release\installer\mindforger-setup.exe
- appveyor PushArtifact app\release\installer\mindforger-setup.exe

before_test:
- echo "BEFORE TEST"
- pushd "%M8R_HOME%\lib\test" && qmake -r mindforger-lib-unit-tests.pro "CONFIG+=debug" "CONFIG+=mfdebug" "CONFIG+=mfunit" "CONFIG+=mfnoccache" && nmake && popd
- echo "AFTER TEST"
- if not exist c:\tmp mkdir c:\tmp

test_script:
Expand Down

0 comments on commit e48fda6

Please sign in to comment.