Skip to content

BugSplat-Git/github-action-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bugsplat-github-banner-basic-outline

BugSplat

Crash and error reporting built for busy developers.

github-action-example

This repo contains an example GitHub Action that builds a Windows C++ application and uses symbol-upload to publish symbols to BugSplat. You can either use this template repo, or follow the steps below to configure an existing application.

Steps 🥾

  1. Create a new BugSplat database
  2. Generate an OAuth2 Client ID and Client Secret pair on the Integrations page
  3. Create a repository secret in your GitHub repo with the key BUGSPLAT_DATABASE and your BugSplat database name as the value
  4. Create repository secrets for SYMBOL_UPLOAD_CLIENT_ID and SYMBOL_UPLOAD_CLIENT_SECRET
  5. Configure BugSplat according to the docs for your specific platform.
  6. If you're using preprocessor definitions to supply a value for BUGSPLAT_DATABASE, be sure to configure your project file as seen here.
  7. Create a GitHub Action that builds your project an uploads symbols. Here's a copy of the action used by this repo
name: Build myConsoleCrasher Project

on: [push]

jobs:
  build:
    name: Build myConsoleCrasher
    runs-on: windows-latest

    steps:
    - name: Checkout code
      uses: actions/checkout@v3

    - name: Setup MSBuild path
      uses: microsoft/[email protected]

    - name: Build myConsoleCrasher project
      env:
        BUGSPLAT_DATABASE: ${{ secrets.BUGSPLAT_DATABASE }}
      run: msbuild .\Samples\myConsoleCrasher\myConsoleCrasher.vcxproj /p:configuration=release /p:DefineConstants=BUGSPLAT_DATABASE=%BUGSPLAT_DATABASE%

    - name: Symbols 📦
      uses: BugSplat-Git/symbol-upload@main
      with:
        clientId: "${{ secrets.SYMBOL_UPLOAD_CLIENT_ID }}"
        clientSecret: "${{ secrets.SYMBOL_UPLOAD_CLIENT_SECRET }}"
        database: "${{ secrets.BUGSPLAT_DATABASE }}"
        application: "MyConsoleCrasher"
        version: "1.0.0"
        files: "*.{pdb,exe,dll}"
        directory: "BugSplat\\Win32\\release"
        node-version: "20"
  1. Trigger a build and navigate to BugSplat's Versions page to verify symbols were uploaded.
  2. Run your application and generate a crash report to test your BugSplat integration.
image

👷 Support

If you have any additional questions, please email our support team, join us on Discord, or reach out via the chat in our web application.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published