Skip to content

Commit

Permalink
Generate symbol files for Github actions full releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Nov 18, 2020
1 parent e5261b3 commit 2bad990
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ jobs:
shell: cmd
run: |
if "${{ matrix.platform }}"=="x86" (set "CMAKE_PLATFORM=Win32") else (set "CMAKE_PLATFORM=x64")
if %GRABBER_IS_NIGHTLY%==1 (set "BUILD_TYPE=Release") else (set "BUILD_TYPE=RelWithDebInfo")
cmake ..\src -G "Visual Studio 16 2019" -A "%CMAKE_PLATFORM%" ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_BUILD_TYPE=%BUILD_TYPE% ^
-DNIGHTLY=%GRABBER_IS_NIGHTLY% ^
-DCOMMIT="%GITHUB_SHA%" ^
-DVERSION="%GRABBER_VERSION%" ^
Expand All @@ -135,8 +136,8 @@ jobs:
working-directory: build
shell: cmd
run: |
cmake --build . --config Release --target sites
cmake --build . --config Release
cmake --build . --target sites
cmake --build .
- name: Test
shell: cmd
Expand Down Expand Up @@ -182,11 +183,15 @@ jobs:
**Head:** ${{ github.sha }}
**Date:** ${{ steps.date.outputs.date }}
- name: Package symbol files
if: ${{ github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') }}
run: 7z a "scripts\windows-setup\Grabber_%GRABBER_VERSION%_%PLATFORM_NAME%_symbols.zip" ".\build\gui\Grabber.pdb" ".\build\cli\Grabber-cli.pdb"

- name: Release
uses: ncipollo/release-action@v1
if: ${{ github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
draft: true
artifacts: scripts\windows-setup\Grabber_*.exe
artifacts: scripts\windows-setup\Grabber_*.exe,scripts\windows-setup\Grabber_*_symbols.zip

0 comments on commit 2bad990

Please sign in to comment.