Skip to content

Commit

Permalink
Publish symbol files to GitHub releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Oct 26, 2018
1 parent 0f8bf10 commit aaeb335
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ build_script:
- if %DEPLOY%==1 cd "%APPVEYOR_BUILD_FOLDER%"

# Build Grabber
- if %GRABBER_IS_NIGHTLY%==1 (set "BUILD_TYPE=RelWithDebInfo") else (set "BUILD_TYPE=RelWithDebInfo")
- mkdir build
- cd build
- cmake .. -G "%MAKEFILES%" -DCMAKE_BUILD_TYPE=Release -DNIGHTLY=%GRABBER_IS_NIGHTLY% -DCOMMIT="%APPVEYOR_REPO_COMMIT%" -DVERSION="%GRABBER_VERSION%"
- cmake .. -G "%MAKEFILES%" -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DNIGHTLY=%GRABBER_IS_NIGHTLY% -DCOMMIT="%APPVEYOR_REPO_COMMIT%" -DVERSION="%GRABBER_VERSION%"
- if not %PLATFORM%==mingw (nmake) else (mingw32-make)
- cd ..

Expand All @@ -76,12 +77,17 @@ build_script:
# Generate installer
- if %DEPLOY%==1 iscc /Q /DMyAppVersion="%GRABBER_VERSION%" /DQtDir="%QTDIR%\bin" /DOpenSSLDir="C:\OpenSSL-Win32" /DMySQLDir="%APPVEYOR_BUILD_FOLDER%\%MYSQL_VERSION%" /DQtApngDll="%APPVEYOR_BUILD_FOLDER%\%APNG_PLUGIN%\5.10.1\msvc2015\plugins\imageformats\qapng.dll" /DQScintillaDir="%QSCINTILLA_DIR%" releases/setup.iss

# Package symbol files to zip
- if "%BUILD_TYPE%"=="RelWithDebInfo" 7z a "releases\Grabber_%GRABBER_VERSION%_symbols.zip" ".\build\gui\Grabber.pdb" ".\build\cli\Grabber-cli.pdb"

test_script:
- build\tests\tests.exe

artifacts:
- path: releases\Grabber_*.exe
name: windows_setup
- path: releases\Grabber_*_symbols.zip
name: windows_symbols_zip

deploy:
# Nightly
Expand All @@ -91,7 +97,7 @@ deploy:
draft: false
prerelease: true
force_update: true
artifact: windows_setup
artifact: windows_setup, windows_symbols_zip
description: |
Nightly automated builds from the develop branch.
Automatically uploaded by AppVeyor, **use at your own risk**!
Expand All @@ -111,7 +117,7 @@ deploy:
draft: true
prerelease: false
force_update: true
artifact: windows_setup
artifact: windows_setup, windows_symbols_zip
auth_token:
secure: mUYQ72KBJUaYr5Bhy2HkBkEY13Q7k27Q7IRmOGXfTOq7YnXUS9PikETcZvzCfiVu
on:
Expand Down

0 comments on commit aaeb335

Please sign in to comment.